Loading...
Searching...
No Matches
gdncvarsync.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine gdncvarsync (var, stat)

Function/Subroutine Documentation

◆ gdncvarsync()

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

Definition at line 3 of file gdncvarsync.f90.

7 use netcdf, only: nf90_noerr
8 implicit none
9 type(GD_NC_VARIABLE), intent(in), optional:: var
10 integer, intent(out), optional:: stat
11 type(GD_NC_VARIABLE_ENTRY):: ent
12 integer:: mystat
13 if (.not. present(var)) then
14 call gdncfilesync(stat=stat)
15 return
16 endif
17 mystat = vtable_lookup(var, ent)
18 if (mystat /= nf90_noerr) then
19 if (present(stat)) stat = mystat
20 else
21 call gdncfilesync(ent%fileid, stat=stat)
22 endif
integer function, public vtable_lookup(var, entry)

References gtdata_netcdf_internal::vtable_lookup().

Here is the call graph for this function: