gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
gdncfiledefinemode.f90 File Reference

Switch netCDF file to define mode . More...

Go to the source code of this file.

Functions/Subroutines

integer function gdncfiledefinemode (fileid)

Detailed Description

Switch netCDF file to define mode

.

Author
Yasuhiro MORIKAWA, Eizi TOYODA

Definition in file gdncfiledefinemode.f90.

Function/Subroutine Documentation

◆ gdncfiledefinemode()

integer function gdncfiledefinemode ( integer, intent(in) fileid)

Switch netCDF file to define mode

Calls nf90_redef to enter define mode. If the file is already in define mode, returns NF90_NOERR instead of an error.

Parameters
[in]fileidnetCDF file ID
Returns
Status code (NF90_NOERR on success)

Definition at line 35 of file gdncfiledefinemode.f90.

36 use netcdf, only: nf90_redef, nf90_eindefine, nf90_noerr
38 integer, intent(in):: fileid
39 character(*), parameter:: subname = "GDNcFileDefineMode"
40continue
41 call dbgmessage(subname // ' %d', i=(/fileid/))
42 result = nf90_redef(fileid)
43 if (result == nf90_eindefine) result = nf90_noerr
Debug tracing module.
Definition dc_trace.f90:150
subroutine, public dbgmessage(fmt, i, r, d, l, n, c1, c2, c3, ca)
Definition dc_trace.f90:661
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
Definition dc_trace.f90:457
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
Definition dc_trace.f90:580

References dc_trace::beginsub(), dc_trace::dbgmessage(), and dc_trace::endsub().

Here is the call graph for this function: