51 character(*),
intent(in):: name
66 logical,
intent(out),
optional:: err
87 character(TOKEN),
pointer:: varnames_array(:) =>null()
90 character(STRING):: cause_c
91 character(*),
parameter:: subname =
'HstNmlInfoDelete'
103 if ( .not. gthstnml % initialized )
then
105 cause_c =
'GTHST_NMLINFO'
109 if ( .not. gthstnml % define_mode )
then
121 call dbgmessage(
'multiple entries (%c) will be deleted', c1 = trim(name) )
123 & carray = varnames_array )
124 vnmax =
size( varnames_array )
128 & gthstnml = gthstnml, &
129 & name = varnames_array(i), &
132 deallocate( varnames_array )
137 deallocate( varnames_array )
146 hptr => gthstnml % gthstnml_list
149 & previous = hptr_prev, &
152 if ( .not.
associated( hptr ) )
goto 999
153 if ( ( trim(hptr % name) /=
'' ) .and.
associated( hptr_prev ) )
then
154 call dbgmessage(
'entry (%c) is deleted', c1 = trim( adjustl( name ) ) )
155 hptr_prev % next => hptr_next
164 call storeerror( stat, subname, err, cause_c )
recursive subroutine hstnmlinfodelete(gthstnml, name, err)
subroutine, public storeerror(number, where, err, cause_c, cause_i)
integer, parameter, public usr_errno
-1000 or less: User-defined errors
integer, parameter, public dc_noerr
Error storage variables
integer, parameter, public dc_enotinit
-400 or less: DC utilities errors
integer, parameter, public hst_enotindefine
-500 or less: Data I/O layer errors
Judge optional control parameters.
logical function, public present_and_not_empty(arg)
logical function, public present_and_true(arg)
Handling character types.
subroutine, public dbgmessage(fmt, i, r, d, l, n, c1, c2, c3, ca)
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)
Provides kind type parameter values.
integer, parameter, public token
Character length for word, token
integer, parameter, public string
Character length for string
character(1), parameter, public name_delimiter