gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
gdncfiledatamode.f90
Go to the documentation of this file.
1!>
2!> @file gdncfiledatamode.f90
3!>
4!> @author Yasuhiro MORIKAWA, Eizi TOYODA
5!> @copyright Copyright (C) GFD Dennou Club, 2000-2026. All rights reserved. <br/>
6!> License is BSD-2-Clause. See [COPYRIGHT](@ref COPYRIGHT) in detail
7!>
8!> @en
9!> @brief Switch netCDF file to data mode
10!> @enden
11!>
12!> @ja
13!> @brief netCDF ファイルをデータモードに切り替え
14!> @endja
15!>
16
17!>
18!> @en
19!> @brief Switch netCDF file to data mode
20!>
21!> Calls nf90_enddef to exit define mode. If the file is already in
22!> data mode, returns NF90_NOERR instead of an error.
23!> @enden
24!>
25!> @ja
26!> @brief netCDF ファイルをデータモードに切り替え
27!>
28!> nf90_enddef を呼び出して定義モードを終了します。
29!> 既にデータモードの場合はエラーではなく NF90_NOERR を返します。
30!> @endja
31!>
32!> @param[in] fileid @en netCDF file ID @enden @ja netCDF ファイル ID @endja
33!> @return @en Status code (NF90_NOERR on success) @enden @ja ステータスコード (成功時は NF90_NOERR) @endja
34!>
35integer function gdncfiledatamode(fileid) result(result)
36 use netcdf, only: nf90_enddef, nf90_enotindefine, nf90_noerr
37 use dc_trace, only: dbgmessage
38 implicit none
39 integer, intent(in):: fileid
40 character(*), parameter:: subname = "GDNcFileDataMode"
41continue
42 call dbgmessage(subname)
43 result = nf90_enddef(fileid)
44 if (result == nf90_enotindefine) result = nf90_noerr
45end function gdncfiledatamode
integer function gdncfiledatamode(fileid)
デバッグ時の追跡用モジュール
Definition dc_trace.f90:150
subroutine, public dbgmessage(fmt, i, r, d, l, n, c1, c2, c3, ca)
Definition dc_trace.f90:680