gtvarsync.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine gtvarsync (var, stat)
 

Function/Subroutine Documentation

◆ gtvarsync()

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

Definition at line 15 of file gtvarsync.f90.

References gdncvarsync(), and gtdata_internal_map::var_class().

Referenced by historyputcharex(), historyputdoubleex(), historyputintex(), historyputrealex(), and sysdepabort().

15  !
16  !== ファイル入出力の同期
17  !
18  ! 変数 *var* に関するメモリ内のバッファと netCDF ファイルのディスク上の
19  ! コピーとを同期します。*var* が与えられない場合、プログラム内で
20  ! これまでに入出力した全てのファイルに関して同期がおこなわれます。
21  !
22  ! *stat* にはステータスが返ります。
23  !
24  use gtdata_types, only: gt_variable
25  use gtdata_internal_map, only: var_class, vtb_class_netcdf, vtb_class_memory
28  type(gt_variable), intent(inout), optional:: var
29  integer, intent(out), optional:: stat
30  integer:: class, cid
31  if (.not. present(var)) then
32  call gdncvarsync(stat=stat)
33  else
34  call var_class(var, class, cid)
35  select case (class)
36  case(vtb_class_netcdf)
37  call gdncvarsync(gd_nc_variable(cid), stat=stat)
38  end select
39  endif
subroutine gdncvarsync(var, stat)
Definition: gdncvarsync.f90:4
subroutine, public var_class(var, class, cid)
Here is the call graph for this function:
Here is the caller graph for this function: