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

ファイル入出力の同期 More...

Go to the source code of this file.

Functions/Subroutines

subroutine gtvarsync (var, stat)

Detailed Description

ファイル入出力の同期

Author
Eizi TOYODA, Yasuhiro MORIKAWA

このサブルーチンは gtdata_generic から gtdata_generic#GTVarSync として提供されます。

Definition in file gtvarsync.f90.

Function/Subroutine Documentation

◆ gtvarsync()

subroutine gtvarsync ( type(gt_variable), intent(inout), optional var,
integer, intent(out), optional stat )

ファイル入出力を同期

変数 var に関するメモリ内のバッファと netCDF ファイルのディスク上の コピーとを同期します。var が与えられない場合、プログラム内で これまでに入出力した全てのファイルに関して同期がおこなわれます。

Parameters
[in,out]var変数ハンドル (省略可能)
[out]statステータスコード (省略可能)

Definition at line 43 of file gtvarsync.f90.

44 use gtdata_types, only: gt_variable
45 use gtdata_internal_map, only: var_class, vtb_class_netcdf
48 type(GT_VARIABLE), intent(inout), optional:: var
49 integer, intent(out), optional:: stat
50 integer:: class, cid
51 if (.not. present(var)) then
52 call gdncvarsync(stat=stat)
53 else
54 call var_class(var, class, cid)
55 select case (class)
56 case(vtb_class_netcdf)
57 call gdncvarsync(gd_nc_variable(cid), stat=stat)
58 end select
59 endif
subroutine, public var_class(var, class, cid)

References gtdata_internal_map::var_class().

Here is the call graph for this function: