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 4 of file gdncvarsync.f90.

References gdncfilesync(), and gtdata_netcdf_internal::vtable_lookup().

Referenced by gtvarsync().

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)
subroutine gdncfilesync(fileid, stat)
Definition: gdncfilesync.f90:2
Here is the call graph for this function:
Here is the caller graph for this function: