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

Synchronize netCDF variable to disk . More...

Go to the source code of this file.

Functions/Subroutines

subroutine gdncvarsync (var, stat)
 

Detailed Description

Synchronize netCDF variable to disk

.

Author
GFD Dennou Club

Definition in file gdncvarsync.f90.

Function/Subroutine Documentation

◆ gdncvarsync()

subroutine gdncvarsync ( type(gd_nc_variable), intent(in), optional  var,
integer, intent(out), optional  stat 
)

Synchronize variable data to disk

Flushes pending writes for the variable to disk. If var is not present, syncs all open files.

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

Definition at line 34 of file gdncvarsync.f90.

38 use netcdf, only: nf90_noerr
39 implicit none
40 type(GD_NC_VARIABLE), intent(in), optional:: var
41 integer, intent(out), optional:: stat
42 type(GD_NC_VARIABLE_ENTRY):: ent
43 integer:: mystat
44 if (.not. present(var)) then
45 call gdncfilesync(stat=stat)
46 return
47 endif
48 mystat = vtable_lookup(var, ent)
49 if (mystat /= nf90_noerr) then
50 if (present(stat)) stat = mystat
51 else
52 call gdncfilesync(ent%fileid, stat=stat)
53 endif
integer function, public vtable_lookup(var, entry)

References gtdata_netcdf_internal::vtable_lookup().

Here is the call graph for this function: