FV3-JEDI
fv3jedi_netcdf_utils_mod.F90
Go to the documentation of this file.
1
! (C) Copyright 2017-2018 UCAR
2
!
3
! This software is licensed under the terms of the Apache Licence Version 2.0
4
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
5
6
module
fv3jedi_netcdf_utils_mod
7
8
use
netcdf
9
10
implicit none
11
private
12
public
nccheck
13
14
! ------------------------------------------------------------------------------
15
16
contains
17
18
! ------------------------------------------------------------------------------
19
20
subroutine
nccheck
(status,iam)
21
22
implicit none
23
integer
,
intent ( in)
:: status
24
character(len=*)
,
optional
:: iam
25
26
character(len=1024)
:: error_descr
27
28
if
(status /= nf90_noerr)
then
29
30
error_descr =
"NetCDF error, aborting ... "
31
32
if
(
present
(iam))
then
33
error_descr = trim(error_descr)//
", "
//trim(iam)
34
endif
35
36
error_descr = trim(error_descr)//
". Error code: "
//trim(nf90_strerror(status))
37
38
call
abor1_ftn(trim(error_descr))
39
40
end if
41
42
end subroutine
nccheck
43
44
! ------------------------------------------------------------------------------
45
46
end module
fv3jedi_netcdf_utils_mod
fv3jedi_netcdf_utils_mod
Definition:
fv3jedi_netcdf_utils_mod.F90:6
fv3jedi_netcdf_utils_mod::nccheck
subroutine, public nccheck(status, iam)
Definition:
fv3jedi_netcdf_utils_mod.F90:21
fv3-bundle
fv3-jedi
src
fv3jedi
Utilities
fv3jedi_netcdf_utils_mod.F90
Generated on Tue Jan 5 2021 15:37:40 for FV3-JEDI by
1.8.18