gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
Functions/Subroutines
gdncfiledefinemode.f90 File Reference

netCDF ファイルを定義モードに切り替え More...

Go to the source code of this file.

Functions/Subroutines

integer function gdncfiledefinemode (fileid)
 

Detailed Description

netCDF ファイルを定義モードに切り替え

Author
Yasuhiro MORIKAWA, Eizi TOYODA

Definition in file gdncfiledefinemode.f90.

Function/Subroutine Documentation

◆ gdncfiledefinemode()

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

netCDF ファイルを定義モードに切り替え

nf90_redef を呼び出して定義モードに入ります。 既に定義モードの場合はエラーではなく NF90_NOERR を返します。

Parameters
[in]fileidnetCDF ファイル ID
Returns
ステータスコード (成功時は NF90_NOERR)

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
デバッグ時の追跡用モジュール
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: