\hypertarget{gtvarattrtrue_8f90}{}\section{gtdata/gtvarattrtrue.f90 File Reference}
\label{gtvarattrtrue_8f90}\index{gtdata/gtvarattrtrue.\+f90@{gtdata/gtvarattrtrue.\+f90}}
\subsection*{Functions/\+Subroutines}
\begin{DoxyCompactItemize}
\item 
logical function \hyperlink{gtvarattrtrue_8f90_ae8542123b85a2419f0dfa043845977f2}{gtvarattrtrue} (var, name, default)
\end{DoxyCompactItemize}


\subsection{Function/\+Subroutine Documentation}
\mbox{\Hypertarget{gtvarattrtrue_8f90_ae8542123b85a2419f0dfa043845977f2}\label{gtvarattrtrue_8f90_ae8542123b85a2419f0dfa043845977f2}} 
\index{gtvarattrtrue.\+f90@{gtvarattrtrue.\+f90}!gtvarattrtrue@{gtvarattrtrue}}
\index{gtvarattrtrue@{gtvarattrtrue}!gtvarattrtrue.\+f90@{gtvarattrtrue.\+f90}}
\subsubsection{\texorpdfstring{gtvarattrtrue()}{gtvarattrtrue()}}
{\footnotesize\ttfamily logical function gtvarattrtrue (\begin{DoxyParamCaption}\item[{type(gt\+\_\+variable), intent(in)}]{var,  }\item[{character(len = $\ast$), intent(in)}]{name,  }\item[{logical, intent(in), optional}]{default }\end{DoxyParamCaption})}



Definition at line 14 of file gtvarattrtrue.\+f90.



References dc\+\_\+error\+::gt\+\_\+enotvar, dc\+\_\+error\+::storeerror(), and gtdata\+\_\+internal\+\_\+map\+::var\+\_\+class().


\begin{DoxyCode}
14   \textcolor{comment}{!}
15   \textcolor{comment}{!== 論理型属性の入力}
16   \textcolor{comment}{!}
17   \textcolor{comment}{! 変数 *var* に付加されている属性 *name* の値を返します。}
18   \textcolor{comment}{! 属性値が論理型属性の場合のみ用いることが出来ます。}
19   \textcolor{comment}{!}
20   \textcolor{comment}{! 以下の場合には .false. が返ります。}
21   \textcolor{comment}{!}
22   \textcolor{comment}{! * 属性の値が文字型で "", "0", "0.0", "0.", ".0", "FALSE",}
23   \textcolor{comment}{!   "false", ".FALSE.",  ".false.", "F", "f", "0.0D0", "0.0d0"}
24   \textcolor{comment}{!   のいづれかであった場合}
25   \textcolor{comment}{! * 属性の値が負の実数であった場合}
26   \textcolor{comment}{!}
27   \textcolor{comment}{! 属性の値が正常に取得できず、且つ *default* が与えられて}
28   \textcolor{comment}{! いた場合、その値が返ります。*default* が与えられていなかった}
29   \textcolor{comment}{! 場合には .false. が返ります。}
30   \textcolor{comment}{!}
31   \textcolor{keywordtype}{use }\hyperlink{namespacegtdata__types}{gtdata\_types}\textcolor{keywordtype}{, only}: gt\_variable
32   \textcolor{keywordtype}{use }\hyperlink{namespacegtdata__internal__map}{gtdata\_internal\_map}\textcolor{keywordtype}{, only}: \hyperlink{namespacegtdata__internal__map_a86b920031832bea17e70a6bf4623c3d9}{var\_class}, vtb\_class\_netcdf
33   \textcolor{keywordtype}{use }\hyperlink{namespacegtdata__netcdf__generic}{gtdata\_netcdf\_generic}\textcolor{keywordtype}{, only}: \hyperlink{interfacegtdata__netcdf__generic_1_1get__attr}{get\_attr}
34   \textcolor{keywordtype}{use }\hyperlink{namespacegtdata__netcdf__types}{gtdata\_netcdf\_types}\textcolor{keywordtype}{, only}: \hyperlink{structgtdata__netcdf__types_1_1gd__nc__variable}{gd\_nc\_variable}
35   \textcolor{keywordtype}{use }\hyperlink{namespacedc__error}{dc\_error}\textcolor{keywordtype}{, only}: \hyperlink{namespacedc__error_a0104aee83ee5752b1a9f6152b11864a8}{storeerror}, \hyperlink{namespacedc__error_abf5d06cefc18fb371ac66ef70aadb05f}{gt\_enotvar}
36   \textcolor{keywordtype}{implicit none}
37   \textcolor{keywordtype}{type}(gt\_variable), \textcolor{keywordtype}{intent(in)}:: var
38   \textcolor{keywordtype}{character(len = *)}, \textcolor{keywordtype}{intent(in)}:: name
39   \textcolor{keywordtype}{logical}, \textcolor{keywordtype}{intent(in)}, \textcolor{keywordtype}{optional}:: default
40   \textcolor{keywordtype}{integer}:: \textcolor{keywordtype}{class}, cid
41 \textcolor{keywordflow}{continue}
42   \textcolor{keyword}{call }\hyperlink{namespacegtdata__internal__map_a86b920031832bea17e70a6bf4623c3d9}{var\_class}(var, \textcolor{keywordtype}{class}, cid)
43   \textcolor{keywordflow}{if} (\textcolor{keywordtype}{class} == vtb\_class\_netcdf) \textcolor{keywordflow}{then}
44     \textcolor{keyword}{call }\hyperlink{interfacegtdata__netcdf__generic_1_1get__attr}{get\_attr}(\hyperlink{structgtdata__netcdf__types_1_1gd__nc__variable}{gd\_nc\_variable}(cid), name, result, default)
45   \textcolor{keywordflow}{else}
46     \textcolor{keyword}{call }\hyperlink{namespacedc__error_a0104aee83ee5752b1a9f6152b11864a8}{storeerror}(\hyperlink{namespacedc__error_abf5d06cefc18fb371ac66ef70aadb05f}{gt\_enotvar}, \textcolor{stringliteral}{"GTVarAttrTrue(NO VARIABLE)"})
47     result = .false.
48 \textcolor{keywordflow}{  endif}
\end{DoxyCode}
Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gtvarattrtrue_8f90_ae8542123b85a2419f0dfa043845977f2_cgraph}
\end{center}
\end{figure}
