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

File I/O synchronization. More...

Go to the source code of this file.

Functions/Subroutines

subroutine gtvarsync (var, stat)
 

Detailed Description

File I/O synchronization.

Author
Eizi TOYODA, Yasuhiro MORIKAWA

Definition in file gtvarsync.f90.

Function/Subroutine Documentation

◆ gtvarsync()

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

Synchronize file I/O

Synchronizes the in-memory buffer for variable var with the disk copy of the netCDF file. If var is not provided, synchronization is performed for all files that have been accessed so far in the program.

Parameters
[in,out]varVariable handle (optional)
[out]statStatus code (optional)

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: