\hypertarget{hstnmlinforesetdefault_8f90}{}\section{gtool/gtool\+\_\+history\+\_\+nmlinfo/hstnmlinforesetdefault.f90 File Reference}
\label{hstnmlinforesetdefault_8f90}\index{gtool/gtool\+\_\+history\+\_\+nmlinfo/hstnmlinforesetdefault.\+f90@{gtool/gtool\+\_\+history\+\_\+nmlinfo/hstnmlinforesetdefault.\+f90}}
\subsection*{Functions/\+Subroutines}
\begin{DoxyCompactItemize}
\item 
subroutine \hyperlink{hstnmlinforesetdefault_8f90_a4842b42aa5738108de1f4454aa4b4ff7}{hstnmlinforesetdefault} (gthstnml, err)
\end{DoxyCompactItemize}


\subsection{Function/\+Subroutine Documentation}
\mbox{\Hypertarget{hstnmlinforesetdefault_8f90_a4842b42aa5738108de1f4454aa4b4ff7}\label{hstnmlinforesetdefault_8f90_a4842b42aa5738108de1f4454aa4b4ff7}} 
\index{hstnmlinforesetdefault.\+f90@{hstnmlinforesetdefault.\+f90}!hstnmlinforesetdefault@{hstnmlinforesetdefault}}
\index{hstnmlinforesetdefault@{hstnmlinforesetdefault}!hstnmlinforesetdefault.\+f90@{hstnmlinforesetdefault.\+f90}}
\subsubsection{\texorpdfstring{hstnmlinforesetdefault()}{hstnmlinforesetdefault()}}
{\footnotesize\ttfamily subroutine hstnmlinforesetdefault (\begin{DoxyParamCaption}\item[{type(gthst\+\_\+nmlinfo), intent(inout)}]{gthstnml,  }\item[{logical, intent(out), optional}]{err }\end{DoxyParamCaption})}



Definition at line 11 of file hstnmlinforesetdefault.\+f90.



References dc\+\_\+trace\+::beginsub(), dc\+\_\+error\+::dc\+\_\+enotinit, dc\+\_\+error\+::dc\+\_\+noerr, dc\+\_\+types\+::dp, dc\+\_\+trace\+::endsub(), dc\+\_\+error\+::hst\+\_\+enotindefine, dc\+\_\+string\+::joinchar(), dc\+\_\+types\+::stdout, dc\+\_\+error\+::storeerror(), dc\+\_\+types\+::string, and dc\+\_\+types\+::token.


\begin{DoxyCode}
11     \textcolor{comment}{!}
12     \textcolor{comment}{! デフォルト値を残し, 登録したデータを削除します.}
13     \textcolor{comment}{!}
14     \textcolor{comment}{! なお, 与えられた *gthstnml* が HstNmlInfoCreate によって初期設定}
15     \textcolor{comment}{! されていない場合, プログラムはエラーを発生させます. }
16     \textcolor{comment}{!}
17     \textcolor{comment}{! Stored data is deleted without default settings. }
18     \textcolor{comment}{!}
19     \textcolor{comment}{! If *gthstnml* is not initialized by "HstNmlInfoCreate" yet, }
20     \textcolor{comment}{! error is occurred.}
21     \textcolor{comment}{!}
22     \textcolor{keywordtype}{use }\hyperlink{namespacegtool__history__nmlinfo__types}{gtool\_history\_nmlinfo\_types}\textcolor{keywordtype}{, only}: 
      \hyperlink{structgtool__history__nmlinfo__types_1_1gthst__nmlinfo}{gthst\_nmlinfo}
23     \textcolor{keywordtype}{use }\hyperlink{namespacegtool__history__nmlinfo__generic}{gtool\_history\_nmlinfo\_generic}\textcolor{keywordtype}{, only}: 
      \hyperlink{interfacegtool__history__nmlinfo__generic_1_1hstnmlinfodelete}{hstnmlinfodelete}, \hyperlink{interfacegtool__history__nmlinfo__generic_1_1hstnmlinfogetnames}{hstnmlinfogetnames}
24     \textcolor{keywordtype}{use }\hyperlink{namespacedc__trace}{dc\_trace}\textcolor{keywordtype}{, only}: \hyperlink{namespacedc__trace_aca1efe8bae50b85f74980a8c4d704dd8}{beginsub}, \hyperlink{namespacedc__trace_ae44de97565a3bdd685789c7748b37e37}{endsub}
25     \textcolor{keywordtype}{use }\hyperlink{namespacedc__string}{dc\_string}\textcolor{keywordtype}{, only}: \hyperlink{interfacegtdata__generic_1_1putline}{putline}, \hyperlink{interfacedc__string_1_1printf}{printf}, \hyperlink{interfacedc__string_1_1split}{split}, 
      \hyperlink{interfacedc__string_1_1strinclude}{strinclude}, \hyperlink{interfacedc__string_1_1stoa}{stoa}, \hyperlink{namespacedc__string_a20412554f8f648165d202319119cf628}{joinchar}
26     \textcolor{keywordtype}{use }\hyperlink{namespacedc__types}{dc\_types}\textcolor{keywordtype}{, only}: \hyperlink{namespacedc__types_ac74a34430fcd3d0eb2344f19d536c086}{dp}, \hyperlink{namespacedc__types_adb76910ff05e3b9fe3436567f8f8dac6}{string}, \hyperlink{namespacedc__types_a6d28eb015ba84292a06f4ff25165b376}{token}, \hyperlink{namespacedc__types_a5d5ccca8cc2b447f2a0546da0a22efdc}{stdout}
27     \textcolor{keywordtype}{use }\hyperlink{namespacedc__error}{dc\_error}\textcolor{keywordtype}{, only}: \hyperlink{namespacedc__error_a0104aee83ee5752b1a9f6152b11864a8}{storeerror}, \hyperlink{namespacedc__error_a64841a3c9e3ef7d5ddb175e5770f7dfe}{dc\_noerr}, 
      \hyperlink{namespacedc__error_a31f1081213c338a4f6a6e5acdfe4a8a8}{dc\_enotinit}, \hyperlink{namespacedc__error_ad13dd9239cf193ea3a029747ece73c50}{hst\_enotindefine}
28     \textcolor{keywordtype}{implicit none}
29     \textcolor{keywordtype}{type}(\hyperlink{structgtool__history__nmlinfo__types_1_1gthst__nmlinfo}{gthst\_nmlinfo}), \textcolor{keywordtype}{intent(inout)}:: gthstnml
30     \textcolor{keywordtype}{logical}, \textcolor{keywordtype}{intent(out)}, \textcolor{keywordtype}{optional}:: err
31                               \textcolor{comment}{! 例外処理用フラグ. }
32                               \textcolor{comment}{! デフォルトでは, この手続き内でエラーが}
33                               \textcolor{comment}{! 生じた場合, プログラムは強制終了します. }
34                               \textcolor{comment}{! 引数 *err* が与えられる場合, }
35                               \textcolor{comment}{! プログラムは強制終了せず, 代わりに}
36                               \textcolor{comment}{! *err* に .true. が代入されます. }
37                               \textcolor{comment}{!}
38                               \textcolor{comment}{! Exception handling flag. }
39                               \textcolor{comment}{! By default, when error occur in }
40                               \textcolor{comment}{! this procedure, the program aborts. }
41                               \textcolor{comment}{! If this *err* argument is given, }
42                               \textcolor{comment}{! .true. is substituted to *err* and }
43                               \textcolor{comment}{! the program does not abort. }
44 
45     \textcolor{comment}{!-----------------------------------}
46     \textcolor{comment}{!  作業変数}
47     \textcolor{comment}{!  Work variables}
48     \textcolor{keywordtype}{character(TOKEN)}, \textcolor{keywordtype}{pointer}:: varnames\_array(:) =>null()
49     \textcolor{keywordtype}{integer}:: i, vnmax
50     \textcolor{keywordtype}{integer}:: stat
51     \textcolor{keywordtype}{character(STRING)}:: cause\_c
52     \textcolor{keywordtype}{character(*)}, \textcolor{keywordtype}{parameter}:: subname = \textcolor{stringliteral}{'HstNmlInfoResetDefault'}
53   \textcolor{keywordflow}{continue}
54     \textcolor{keyword}{call }\hyperlink{namespacedc__trace_aca1efe8bae50b85f74980a8c4d704dd8}{beginsub}( subname )
55     stat = \hyperlink{namespacedc__error_a64841a3c9e3ef7d5ddb175e5770f7dfe}{dc\_noerr}
56     cause\_c = \textcolor{stringliteral}{''}
57 
58     \textcolor{comment}{!-----------------------------------------------------------------}
59     \textcolor{comment}{!  初期設定のチェック}
60     \textcolor{comment}{!  Check initialization}
61     \textcolor{comment}{!-----------------------------------------------------------------}
62     \textcolor{keywordflow}{if} ( .not. gthstnml % initialized ) \textcolor{keywordflow}{then}
63       stat = \hyperlink{namespacedc__error_a31f1081213c338a4f6a6e5acdfe4a8a8}{dc\_enotinit}
64       cause\_c = \textcolor{stringliteral}{'GTHST\_NMLINFO'}
65       \textcolor{keywordflow}{goto} 999
66 \textcolor{keywordflow}{    end if}
67 
68     \textcolor{keywordflow}{if} ( .not. gthstnml % define\_mode ) \textcolor{keywordflow}{then}
69       stat = \hyperlink{namespacedc__error_ad13dd9239cf193ea3a029747ece73c50}{hst\_enotindefine}
70       cause\_c = \textcolor{stringliteral}{'ResetDefault'}
71       \textcolor{keywordflow}{goto} 999
72 \textcolor{keywordflow}{    end if}
73 
74     \textcolor{comment}{!-----------------------------------------------------------------}
75     \textcolor{comment}{!  変数名リストの取得}
76     \textcolor{comment}{!  Get varnames list}
77     \textcolor{comment}{!-----------------------------------------------------------------}
78     \textcolor{keyword}{call }\hyperlink{interfacegtool__history__nmlinfo__generic_1_1hstnmlinfogetnames}{hstnmlinfogetnames}( gthstnml, & \textcolor{comment}{! (in)}
79       & varnames\_array )                 \textcolor{comment}{! (out)}
80     vnmax = \textcolor{keyword}{size}( varnames\_array )
81 
82     \textcolor{keywordflow}{do} i = 1, vnmax
83       \textcolor{keyword}{call }\hyperlink{interfacegtool__history__nmlinfo__generic_1_1hstnmlinfodelete}{hstnmlinfodelete}( &
84         & gthstnml = gthstnml, &     \textcolor{comment}{! (inout)}
85         & name = varnames\_array(i) ) \textcolor{comment}{! (in)}
86 \textcolor{keywordflow}{    end do}
87 
88     \textcolor{keyword}{deallocate}( varnames\_array )
89 
90     \textcolor{comment}{!-----------------------------------------------------------------}
91     \textcolor{comment}{!  終了処理, 例外処理}
92     \textcolor{comment}{!  Termination and Exception handling}
93     \textcolor{comment}{!-----------------------------------------------------------------}
94 999 \textcolor{keywordflow}{continue}
95     \textcolor{keyword}{call }\hyperlink{namespacedc__error_a0104aee83ee5752b1a9f6152b11864a8}{storeerror}( stat, subname, err, cause\_c )
96     \textcolor{keyword}{call }\hyperlink{namespacedc__trace_ae44de97565a3bdd685789c7748b37e37}{endsub}( subname )
\end{DoxyCode}
Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{hstnmlinforesetdefault_8f90_a4842b42aa5738108de1f4454aa4b4ff7_cgraph}
\end{center}
\end{figure}
