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


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



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



References dc\+\_\+trace\+::beginsub(), dc\+\_\+error\+::dc\+\_\+enotinit, dc\+\_\+error\+::dc\+\_\+noerr, dc\+\_\+types\+::dp, dc\+\_\+trace\+::endsub(), dc\+\_\+error\+::hst\+\_\+eindefine, dc\+\_\+error\+::hst\+\_\+eintfile, 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}{! HstNmlInfoAssocGTHist サブルーチンを呼び出す前には, }
15     \textcolor{comment}{! 再度 HstNmlInfoEndDefine を呼び出して定義モードへと移行してください. }
16     \textcolor{comment}{! このサブルーチンを呼んだ後でなら, 再度}
17     \textcolor{comment}{! HstNmlInfoAdd, HstNmlInfoDelete, HstNmlInfoResetDefault }
18     \textcolor{comment}{! を呼ぶことが可能です. }
19     \textcolor{comment}{!}
20     \textcolor{comment}{! なお, 与えられた *gthstnml* が HstNmlInfoCreate によって初期設定}
21     \textcolor{comment}{! されていない場合にも, プログラムはエラーを発生させます. }
22     \textcolor{comment}{!}
23     \textcolor{comment}{! Return from output mode to define mode, }
24     \textcolor{comment}{! information can be configured again. }
25     \textcolor{comment}{! Use "HstNmlInfoEndDefine" again and }
26     \textcolor{comment}{! transit from define mode to output mode, }
27     \textcolor{comment}{! before "HstNmlInfoAssocGTHist" is used. }
28     \textcolor{comment}{! "HstNmlInfoAdd", "HstNmlInfoDelete", "HstNmlInfoResetDefault" }
29     \textcolor{comment}{! can be are used again after }
30     \textcolor{comment}{! this subroutine is used. }
31     \textcolor{comment}{!}
32     \textcolor{comment}{! If *gthstnml* is not initialized by "HstNmlInfoCreate" yet, }
33     \textcolor{comment}{! error is occurred.}
34     \textcolor{comment}{!}
35     \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}
36     \textcolor{keywordtype}{use }\hyperlink{namespacedc__trace}{dc\_trace}\textcolor{keywordtype}{, only}: \hyperlink{namespacedc__trace_aca1efe8bae50b85f74980a8c4d704dd8}{beginsub}, \hyperlink{namespacedc__trace_ae44de97565a3bdd685789c7748b37e37}{endsub}
37     \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}
38     \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}
39     \textcolor{keywordtype}{use }\hyperlink{namespacedc__hash}{dc\_hash}\textcolor{keywordtype}{, only}: \hyperlink{structdc__hash_1_1hash}{hash}, \hyperlink{interfacedc__hash_1_1dchashput}{dchashput}, \hyperlink{interfacedc__hash_1_1dchashget}{dchashget}, 
      \hyperlink{interfacedc__hash_1_1dchashrewind}{dchashrewind}, \hyperlink{interfacedc__hash_1_1dchashnext}{dchashnext}, \hyperlink{interfacedc__hash_1_1dchashnumber}{dchashnumber}
40     \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}, \hyperlink{namespacedc__error_a40cffbacf3d9f703f4d996faf9ecd033}{hst\_eintfile}, 
      \hyperlink{namespacedc__error_a8c9f0f2a4a794e70f50cb768091c75ec}{hst\_eindefine}
41     \textcolor{keywordtype}{use }\hyperlink{namespacedc__message}{dc\_message}\textcolor{keywordtype}{, only}: \hyperlink{interfacedc__message_1_1messagenotify}{messagenotify}
42     \textcolor{keywordtype}{implicit none}
43     \textcolor{keywordtype}{type}(\hyperlink{structgtool__history__nmlinfo__types_1_1gthst__nmlinfo}{gthst\_nmlinfo}), \textcolor{keywordtype}{intent(inout)}:: gthstnml
44     \textcolor{keywordtype}{logical}, \textcolor{keywordtype}{intent(out)}, \textcolor{keywordtype}{optional}:: err
45                               \textcolor{comment}{! 例外処理用フラグ. }
46                               \textcolor{comment}{! デフォルトでは, この手続き内でエラーが}
47                               \textcolor{comment}{! 生じた場合, プログラムは強制終了します. }
48                               \textcolor{comment}{! 引数 *err* が与えられる場合, }
49                               \textcolor{comment}{! プログラムは強制終了せず, 代わりに}
50                               \textcolor{comment}{! *err* に .true. が代入されます. }
51                               \textcolor{comment}{!}
52                               \textcolor{comment}{! Exception handling flag. }
53                               \textcolor{comment}{! By default, when error occur in }
54                               \textcolor{comment}{! this procedure, the program aborts. }
55                               \textcolor{comment}{! If this *err* argument is given, }
56                               \textcolor{comment}{! .true. is substituted to *err* and }
57                               \textcolor{comment}{! the program does not abort. }
58 
59     \textcolor{comment}{!-----------------------------------}
60     \textcolor{comment}{!  作業変数}
61     \textcolor{comment}{!  Work variables}
62     \textcolor{keywordtype}{integer}:: stat
63     \textcolor{keywordtype}{character(STRING)}:: cause\_c
64     \textcolor{keywordtype}{character(*)}, \textcolor{keywordtype}{parameter}:: subname = \textcolor{stringliteral}{'HstNmlInfoReDefine'}
65   \textcolor{keywordflow}{continue}
66     \textcolor{keyword}{call }\hyperlink{namespacedc__trace_aca1efe8bae50b85f74980a8c4d704dd8}{beginsub}( subname )
67     stat = \hyperlink{namespacedc__error_a64841a3c9e3ef7d5ddb175e5770f7dfe}{dc\_noerr}
68     cause\_c = \textcolor{stringliteral}{''}
69 
70     \textcolor{comment}{!-----------------------------------------------------------------}
71     \textcolor{comment}{!  初期設定のチェック}
72     \textcolor{comment}{!  Check initialization}
73     \textcolor{comment}{!-----------------------------------------------------------------}
74     \textcolor{keywordflow}{if} ( .not. gthstnml % initialized ) \textcolor{keywordflow}{then}
75       stat = \hyperlink{namespacedc__error_a31f1081213c338a4f6a6e5acdfe4a8a8}{dc\_enotinit}
76       cause\_c = \textcolor{stringliteral}{'GTHST\_NMLINFO'}
77       \textcolor{keywordflow}{goto} 999
78 \textcolor{keywordflow}{    end if}
79 
80     \textcolor{keywordflow}{if} ( gthstnml % define\_mode ) \textcolor{keywordflow}{then}
81       stat = \hyperlink{namespacedc__error_a8c9f0f2a4a794e70f50cb768091c75ec}{hst\_eindefine}
82       cause\_c = \textcolor{stringliteral}{'ReDefine'}
83       \textcolor{keywordflow}{goto} 999
84 \textcolor{keywordflow}{    end if}
85 
86     \textcolor{comment}{!-----------------------------------------------------------------}
87     \textcolor{comment}{!  定義モードへと戻る}
88     \textcolor{comment}{!  Return to define mode}
89     \textcolor{comment}{!-----------------------------------------------------------------}
90     gthstnml % define\_mode = .true.
91 
92     \textcolor{comment}{!-----------------------------------------------------------------}
93     \textcolor{comment}{!  終了処理, 例外処理}
94     \textcolor{comment}{!  Termination and Exception handling}
95     \textcolor{comment}{!-----------------------------------------------------------------}
96 999 \textcolor{keywordflow}{continue}
97     \textcolor{keyword}{call }\hyperlink{namespacedc__error_a0104aee83ee5752b1a9f6152b11864a8}{storeerror}( stat, subname, err, cause\_c )
98     \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]{hstnmlinforedefine_8f90_accd0a2a963da3a52b8ac243f6afe5452_cgraph}
\end{center}
\end{figure}
