12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
54 use dc_trace, only: beginsub, endsub
55 use dc_string, only: putline, printf, split, strinclude, stoa, joinchar
58 implicit none
59 type(GTHST_NMLINFO), intent(in):: gthstnml
60 character(*), intent(in):: name
61
62
63
64
65
66 logical, intent(out), optional:: err
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84 type(GTHST_NMLINFO_ENTRY), pointer:: hptr =>null()
85 integer:: stat
86 character(STRING):: cause_c
87 character(*), parameter:: subname = 'HstNmlInfoOutputStepDisable'
88 continue
89 call beginsub( subname )
91 cause_c = ''
92
93
94
95
96
97 if ( .not. gthstnml % initialized ) then
99 cause_c = 'GTHST_NMLINFO'
100 goto 999
101 end if
102
103 if ( trim( name ) == '' ) then
105 cause_c = ''
106 goto 999
107 end if
108
109 if ( gthstnml % define_mode ) then
111 cause_c = 'OutputStepDisable'
112 goto 999
113 end if
114
115
116
117
118
119 hptr => gthstnml % gthstnml_list
121 & name = name )
122
123 if ( .not. associated( hptr ) ) then
125 cause_c = adjustl( name )
126 goto 999
127 end if
128
129 hptr % output_step_disable = .true.
130
131 nullify( hptr )
132
133
134
135
136
137999 continue
138 call storeerror( stat, subname, err, cause_c )
139 call endsub( subname )
subroutine, public storeerror(number, where, err, cause_c, cause_i)
integer, parameter, public dc_enotinit
integer, parameter, public dc_noerr
integer, parameter, public hst_eindefine
integer, parameter, public hst_ebadname
integer, parameter, public dc_enoentry
Provides kind type parameter values.
integer, parameter, public stdout
Unit number for Standard OUTPUT
integer, parameter, public token
Character length for word, token
integer, parameter, public dp
Double Precision Real number
integer, parameter, public string
Character length for string