gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
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 
)

Advance to next entry in list

gthstnml_list (type GTHST_NMLINFO_ENTRY) that is a list structure is received, and gthstnml_list is reassociated to next entry, and is returned. If next entry is not found, gthstnml_list is associated to next in last entry (null), and returned. If gthstnml_list is null from the beginning, null is returned.

Parameters
[in,out]gthstnml_listList entry pointer
[out]errError flag (optional)

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 )
Error handling module.
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
Error storage variables
Definition dc_error.f90:468
Debug tracing module.
Definition dc_trace.f90:150
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
Definition dc_trace.f90:476
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
Definition dc_trace.f90:599
Provides kind type parameter values.
Definition dc_types.f90:55
integer, parameter, public string
Character length for 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: