Skip to content

Commit

Permalink
GitHub Issue NOAA-EMC#13. Continuing to clear through coding standard…
Browse files Browse the repository at this point in the history
… issues in the master. Finished through src/gsi/nlmsas_ad.f90.
  • Loading branch information
MichaelLueken committed Sep 9, 2020
1 parent fb2fe8d commit 821b0f6
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 112 deletions.
17 changes: 9 additions & 8 deletions src/gsi/netcdf_mod.f90
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,28 @@ module netcdf_mod

public :: nc_check

character(len=*) , parameter:: myname='netcdf_mod'
character(len=*) , parameter:: myname='netcdf_mod'

contains

SUBROUTINE nc_check(ierr,subr_name,context,stat)
subroutine nc_check(ierr,subr_name,context,stat)

! Trap for netcdf errors
! INPUT:
! Input:
! ierr - netcdf error return code
! subr_name - subroutine name that made the netcdf call
! context - what was the context of the call
! OUTPUT:
! Output:
! stat - Return ierr and do not fatally fail, just warn

use kinds, only: i_kind
use mpeu_util, only: die,perr,warn

implicit none

integer, intent(in ) :: ierr
character(len=*),intent(in ) :: subr_name, context
integer,optional,intent(out) :: stat
integer(i_kind), intent(in ) :: ierr
character(len=*), intent(in ) :: subr_name, context
integer(i_kind),optional,intent(out) :: stat

if ( ierr /= nf90_noerr ) then
if ( present(stat) ) then
Expand All @@ -68,6 +69,6 @@ SUBROUTINE nc_check(ierr,subr_name,context,stat)
endif

return
END SUBROUTINE nc_check
end subroutine nc_check

end module netcdf_mod
Loading

0 comments on commit 821b0f6

Please sign in to comment.