\hypertarget{gdncvarsync_8f90}{}\section{gtdata/gtdata\+\_\+netcdf/gdncvarsync.f90 File Reference}
\label{gdncvarsync_8f90}\index{gtdata/gtdata\+\_\+netcdf/gdncvarsync.\+f90@{gtdata/gtdata\+\_\+netcdf/gdncvarsync.\+f90}}
\subsection*{Functions/\+Subroutines}
\begin{DoxyCompactItemize}
\item 
subroutine \hyperlink{gdncvarsync_8f90_a3f6f7876e7a25f7178c4e3e9926fa6f9}{gdncvarsync} (var, stat)
\end{DoxyCompactItemize}


\subsection{Function/\+Subroutine Documentation}
\mbox{\Hypertarget{gdncvarsync_8f90_a3f6f7876e7a25f7178c4e3e9926fa6f9}\label{gdncvarsync_8f90_a3f6f7876e7a25f7178c4e3e9926fa6f9}} 
\index{gdncvarsync.\+f90@{gdncvarsync.\+f90}!gdncvarsync@{gdncvarsync}}
\index{gdncvarsync@{gdncvarsync}!gdncvarsync.\+f90@{gdncvarsync.\+f90}}
\subsubsection{\texorpdfstring{gdncvarsync()}{gdncvarsync()}}
{\footnotesize\ttfamily subroutine gdncvarsync (\begin{DoxyParamCaption}\item[{type(gd\+\_\+nc\+\_\+variable), intent(in), optional}]{var,  }\item[{integer, intent(out), optional}]{stat }\end{DoxyParamCaption})}



Definition at line 4 of file gdncvarsync.\+f90.



References gdncfilesync(), and gtdata\+\_\+netcdf\+\_\+internal\+::vtable\+\_\+lookup().



Referenced by gtvarsync().


\begin{DoxyCode}
4     \textcolor{keywordtype}{use }\hyperlink{namespacegtdata__netcdf__types}{gtdata\_netcdf\_types}\textcolor{keywordtype}{, only}: \hyperlink{structgtdata__netcdf__types_1_1gd__nc__variable}{gd\_nc\_variable}, 
      \hyperlink{structgtdata__netcdf__types_1_1gd__nc__variable__entry}{gd\_nc\_variable\_entry}
5     \textcolor{keywordtype}{use }\hyperlink{namespacegtdata__netcdf__file__generic}{gtdata\_netcdf\_file\_generic}\textcolor{keywordtype}{, only}: \hyperlink{gdncfilesync_8f90_af8d39b1bad7faf9dc6812a17f4270d36}{gdncfilesync}
6     \textcolor{keywordtype}{use }\hyperlink{namespacegtdata__netcdf__internal}{gtdata\_netcdf\_internal}\textcolor{keywordtype}{, only}: \hyperlink{namespacegtdata__netcdf__internal_afe013c8012ec100bf1e94e5147c340de}{vtable\_lookup}
7     \textcolor{keywordtype}{use }netcdf\textcolor{keywordtype}{, only}: nf90\_noerr
8     \textcolor{keywordtype}{implicit none}
9     \textcolor{keywordtype}{type}(\hyperlink{structgtdata__netcdf__types_1_1gd__nc__variable}{gd\_nc\_variable}), \textcolor{keywordtype}{intent(in)}, \textcolor{keywordtype}{optional}:: var
10     \textcolor{keywordtype}{integer}, \textcolor{keywordtype}{intent(out)}, \textcolor{keywordtype}{optional}:: stat
11     \textcolor{keywordtype}{type}(\hyperlink{structgtdata__netcdf__types_1_1gd__nc__variable__entry}{gd\_nc\_variable\_entry}):: ent
12     \textcolor{keywordtype}{integer}:: mystat
13     \textcolor{keywordflow}{if} (.not. \textcolor{keyword}{present}(var)) \textcolor{keywordflow}{then}
14         \textcolor{keyword}{call }\hyperlink{gdncfilesync_8f90_af8d39b1bad7faf9dc6812a17f4270d36}{gdncfilesync}(stat=stat)
15         \textcolor{keywordflow}{return}
16 \textcolor{keywordflow}{    endif}
17     mystat = \hyperlink{namespacegtdata__netcdf__internal_afe013c8012ec100bf1e94e5147c340de}{vtable\_lookup}(var, ent)
18     \textcolor{keywordflow}{if} (mystat /= nf90\_noerr) \textcolor{keywordflow}{then}
19         \textcolor{keywordflow}{if} (\textcolor{keyword}{present}(stat)) stat = mystat
20     \textcolor{keywordflow}{else}
21         \textcolor{keyword}{call }\hyperlink{gdncfilesync_8f90_af8d39b1bad7faf9dc6812a17f4270d36}{gdncfilesync}(ent%fileid, stat=stat)
22 \textcolor{keywordflow}{    endif}
\end{DoxyCode}
Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gdncvarsync_8f90_a3f6f7876e7a25f7178c4e3e9926fa6f9_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=550pt]{gdncvarsync_8f90_a3f6f7876e7a25f7178c4e3e9926fa6f9_icgraph}
\end{center}
\end{figure}
