42 character(*),
parameter,
public::
version = &
44 &
'$Id: gtool_history_nmlinfo_internal.f90,v 1.1 2009-05-11 15:15:15 morikawa Exp $'
52 module procedure hstnmlinfolistnext
56 module procedure hstnmlinfolistlast
60 module procedure hstnmlinfolistsearch
93 subroutine hstnmlinfolistnext( &
94 & gthstnml_list, err )
102 logical,
intent(out),
optional:: err
121 character(STRING):: cause_c
122 character(*),
parameter:: subname =
'HstNmlInfoListNext'
132 if ( .not.
associated( gthstnml_list ) )
goto 999
138 gthstnml_list => gthstnml_list % next
145 call storeerror( stat, subname, err, cause_c )
147 end subroutine hstnmlinfolistnext
181 subroutine hstnmlinfolistlast( &
182 & gthstnml_list, previous, err )
192 logical,
intent(out),
optional:: err
211 character(STRING):: cause_c
212 character(*),
parameter:: subname =
'HstNmlInfoListLast'
218 if (
present( previous ) )
nullify( previous )
224 if ( .not.
associated( gthstnml_list ) )
goto 999
230 do while (
associated( gthstnml_list % next ) )
231 if (
present( previous ) ) previous => gthstnml_list
232 call listnext( gthstnml_list = gthstnml_list )
240 call storeerror( stat, subname, err, cause_c )
242 end subroutine hstnmlinfolistlast
293 subroutine hstnmlinfolistsearch( &
294 & gthstnml_list, name, &
295 & previous, next, err )
303 character(*),
intent(in):: name
313 logical,
intent(out),
optional:: err
332 character(STRING):: cause_c
333 character(*),
parameter:: subname =
'HstNmlInfoListSearch'
343 if ( .not.
associated( gthstnml_list ) )
goto 999
349 if (
present( previous ) )
nullify( previous )
350 if (
present(
next ) )
nullify(
next )
351 if ( trim( adjustl( gthstnml_list % name ) ) == trim( adjustl( name ) ) )
then
352 if (
present(
next ) )
then
353 next => gthstnml_list % next
358 do while (
associated( gthstnml_list ) )
359 if (
present( previous ) ) previous => gthstnml_list
360 call listnext( gthstnml_list = gthstnml_list )
361 if ( .not.
associated( gthstnml_list ) )
goto 999
362 if ( trim( adjustl( gthstnml_list % name ) ) == trim( adjustl( name ) ) )
then
363 if (
present(
next ) )
then
364 next => gthstnml_list % next
375 call storeerror( stat, subname, err, cause_c )
377 end subroutine hstnmlinfolistsearch
subroutine, public storeerror(number, where, err, cause_c, cause_i)
integer, parameter, public dc_noerr
エラー等を保持
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
type(hash), save, public opened_files
character(1), parameter, public name_delimiter
character(*), parameter, public version