36 use dc_trace,
only: beginsub, endsub, dbgmessage
37 use dc_string,
only: putline, printf, split, strinclude, stoa, joinchar
42 logical,
intent(out),
optional:: err
63 character(STRING):: cause_c
64 character(*),
parameter:: subname =
'HstNmlInfoClose'
66 call beginsub( subname )
74 if ( .not. gthstnml % initialized )
then
76 cause_c =
'GTHST_NMLINFO'
85 hptr => gthstnml % gthstnml_list
86 call listlast( gthstnml_list = hptr, &
87 & previous = hptr_prev )
88 call dbgmessage(
'remove entry (%c)', c1 = trim(hptr % name) )
89 if ( trim( hptr % name ) ==
'' )
exit
90 if ( .not. gthstnml % define_mode )
then
91 if ( historyinitialized( hptr % history ) )
then
98 nullify( hptr_prev % next )
100 deallocate( gthstnml % gthstnml_list )
106 gthstnml % initialized = .false.
107 gthstnml % define_mode = .true.
110 call storeerror( stat, subname, err, cause_c )
111 call endsub( subname )
subroutine hstnmlinfoclose(gthstnml, err)
subroutine, public storeerror(number, where, err, cause_c, cause_i)
integer, parameter, public hst_enottermgthist
integer, parameter, public dc_enotinit
integer, parameter, public dc_noerr
Provides kind type parameter values.
integer, parameter, public token
Character length for word, token
integer, parameter, public string
Character length for string
integer, parameter, public stdout
Unit number for Standard OUTPUT
integer, parameter, public dp
Double Precision Real number