gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
Public Member Functions | List of all members
gtool_history_nmlinfo_internal::listnext Interface Reference

Public Member Functions

subroutine hstnmlinfolistnext (gthstnml_list, err)
 

Detailed Description

Definition at line 51 of file gtool_history_nmlinfo_internal.f90.

Member Function/Subroutine Documentation

◆ hstnmlinfolistnext()

subroutine gtool_history_nmlinfo_internal::listnext::hstnmlinfolistnext ( type(gthst_nmlinfo_entry), pointer  gthstnml_list,
logical, intent(out), optional  err 
)

リストの次エントリへ移動

リスト構造である gthstnml_list (GTHST_NMLINFO_ENTRY 型) を受け取り, 次のエントリを gthstnml_list に再結合して返します. 次のエントリが無い場合, gthstnml_list の最後のエントリの next (空状態) に接続して返します. gthstnml_list が始めから空の場合には空状態を返します.

Parameters
[in,out]gthstnml_listリストエントリポインタ
[out]err例外処理用フラグ (省略可能)

Definition at line 93 of file gtool_history_nmlinfo_internal.f90.

96 use dc_trace, only: beginsub, endsub
97 use dc_error, only: storeerror, dc_noerr
98 use dc_types, only: string
99 implicit none
100 type(GTHST_NMLINFO_ENTRY), pointer:: gthstnml_list
101 ! (inout)
102 logical, intent(out), optional:: err
103 ! 例外処理用フラグ.
104 ! デフォルトでは, この手続き内でエラーが
105 ! 生じた場合, プログラムは強制終了します.
106 ! 引数 *err* が与えられる場合,
107 ! プログラムは強制終了せず, 代わりに
108 ! *err* に .true. が代入されます.
109 !
110 ! Exception handling flag.
111 ! By default, when error occur in
112 ! this procedure, the program aborts.
113 ! If this *err* argument is given,
114 ! .true. is substituted to *err* and
115 ! the program does not abort.
116
117 !-----------------------------------
118 ! 作業変数
119 ! Work variables
120 integer:: stat
121 character(STRING):: cause_c
122 character(*), parameter:: subname = 'HstNmlInfoListNext'
123 continue
124 call beginsub( subname )
125 stat = dc_noerr
126 cause_c = ''
127
128 !-----------------------------------------------------------------
129 ! 空状態の場合は何もしないで返す
130 ! If null, return without change
131 !-----------------------------------------------------------------
132 if ( .not. associated( gthstnml_list ) ) goto 999
133
134 !-----------------------------------------------------------------
135 ! 次のエントリに結合して返す
136 ! Next entry is associated, and returned
137 !-----------------------------------------------------------------
138 gthstnml_list => gthstnml_list % next
139
140 !-----------------------------------------------------------------
141 ! 終了処理, 例外処理
142 ! Termination and Exception handling
143 !-----------------------------------------------------------------
144999 continue
145 call storeerror( stat, subname, err, cause_c )
146 call endsub( subname )
エラー処理用モジュール
Definition dc_error.f90:454
subroutine, public storeerror(number, where, err, cause_c, cause_i)
Definition dc_error.f90:891
integer, parameter, public dc_noerr
エラー等を保持
Definition dc_error.f90:468
デバッグ時の追跡用モジュール
Definition dc_trace.f90:150
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
Definition dc_trace.f90:457
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
Definition dc_trace.f90:580
種別型パラメタを提供します。
Definition dc_types.f90:55
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
Definition dc_types.f90:137

References dc_trace::beginsub(), dc_error::dc_noerr, dc_trace::endsub(), dc_error::storeerror(), and dc_types::string.

Here is the call graph for this function:

The documentation for this interface was generated from the following file: