61 INTEGER,
PARAMETER :: nvals_max = 9
64 INTEGER,
PARAMETER :: nvals_max = 20
67 CHARACTER(CHRLEN) :: rcsidentstring
68 CHARACTER(10) :: keys(nvals_max)
70 LOGICAL :: defined(nvals_max)
72 REAL(RFREAL) :: vals(nvals_max)
76 rcsidentstring =
'$RCSfile: ReadPostSection.F90,v $ $Revision: 1.15 $'
79 'ReadPostSection.F90')
89 keys( 4) =
'OUTFORMAT'
90 keys( 5) =
'STATSFLAG'
99 global%postStatsFlag = .false.
100 global%postTurbFlag = .false.
101 global%postPlagFlag = .false.
102 global%postRadiFlag = .false.
103 global%postSpecFlag = .false.
105 IF (defined(1).eqv..true.)
THEN
106 IF (int(vals(1)+0.5_rfreal) == 1)
THEN
107 global%postPlotType = plot_grid_only
109 global%postPlotType = plot_grid_flow
113 IF (defined(2).eqv..true.)
THEN
114 global%postTime = abs(vals(2))
117 IF (defined(3).eqv..true.)
THEN
118 global%postIter = int(vals(3)+0.5_rfreal)
121 IF (defined(4).eqv..true.)
THEN
122 global%postOutFmt = int(vals(4)+0.5_rfreal)
125 IF (defined(5).eqv..true.)
THEN
126 IF (int(vals(5)+0.5_rfreal) == 1)
THEN
127 global%postStatsFlag = .true.
131 IF (defined(6).eqv..true.)
THEN
132 IF (int(vals(6)+0.5_rfreal) == 1)
THEN
133 global%postTurbFlag = .true.
137 IF (defined(7).eqv..true.)
THEN
138 IF (int(vals(7)+0.5_rfreal) == 1)
THEN
139 global%postPlagFlag = .true.
143 IF (defined(8).eqv..true.)
THEN
144 IF (int(vals(8)+0.5_rfreal) == 1)
THEN
145 global%postRadiFlag = .true.
149 IF (defined(9).eqv..true.)
THEN
150 IF (int(vals(9)+0.5_rfreal) == 1)
THEN
151 global%postSpecFlag = .true.
155 IF (global%postOutFmt <= 1)
THEN
156 global%postOutFmt = plot_fmt_generic
157 ELSE IF (global%postOutFmt == 2)
THEN
158 global%postOutFmt = plot_fmt_tecplot
160 global%postOutFmt = plot_fmt_tecascii
166 keys( 2) =
'MERGEFLAG'
167 keys( 3) =
'PLTVOLFLAG'
168 keys( 4) =
'INTERTYPE'
169 keys( 5) =
'INTERORDER'
170 keys( 6) =
'SPECFLAG'
171 keys( 7) =
'EXTRFLAG'
172 keys( 8) =
'DISCFLAG'
175 keys(11) =
'NFRINGES'
176 keys(12) =
'VORTFLAG'
177 keys(13) =
'COREFLAG'
178 keys(14) =
'WRIMERGE'
180 keys(16) =
'OUTFORMAT'
181 keys(17) =
'NSERVERS'
182 keys(18) =
'PLTPATFLAG'
183 keys(19) =
'PEULFLAG'
184 keys(20) =
'GRADFLAG'
188 IF ( defined(1) .EQV. .true. )
THEN
189 IF ( nint(vals(1)) == 1 )
THEN
190 global%postPlotType = plot_grid_only
192 global%postPlotType = plot_grid_flow
196 IF ( defined(2) .EQV. .true. )
THEN
197 IF ( nint(vals(2)) == 1 )
THEN
198 global%postMergeFlag = .true.
200 global%postMergeFlag = .false.
204 IF ( defined(3) .EQV. .true. )
THEN
205 IF ( nint(vals(3)) == 1 )
THEN
206 global%postPlotVolFlag = .true.
208 global%postPlotVolFlag = .false.
212 IF ( defined(4) .EQV. .true. )
THEN
213 global%postInterpType = nint(vals(4))
216 IF ( defined(5) .EQV. .true. )
THEN
217 global%postInterpOrder = nint(vals(5))
220 IF ( defined(6) .EQV. .true. )
THEN
221 IF ( nint(vals(6)) == 1 )
THEN
222 global%postSpecFlag = .true.
224 global%postSpecFlag = .false.
228 IF ( defined(7) .EQV. .true. )
THEN
229 IF ( nint(vals(7)) == 1 )
THEN
230 global%postExtractFlag = .true.
232 global%postExtractFlag = .false.
236 IF ( defined(8) .EQV. .true. )
THEN
237 IF ( nint(vals(8)) == 1 )
THEN
238 global%postDiscFlag = .true.
240 global%postDiscFlag = .false.
244 IF ( defined(9) .EQV. .true. )
THEN
245 global%postSchType = nint(vals(9))
248 IF ( defined(10) .EQV. .true. )
THEN
249 global%postSchExp = vals(10)
252 IF ( defined(11) .EQV. .true. )
THEN
253 global%postNFringes = nint(vals(11))
256 IF ( defined(12) .EQV. .true. )
THEN
257 IF ( nint(vals(12)) == 1 )
THEN
258 global%postVortFlag = .true.
260 global%postVortFlag = .false.
264 IF ( defined(13) .EQV. .true. )
THEN
265 IF ( nint(vals(13)) == 1 )
THEN
266 global%postVortCoreFlag = .true.
268 global%postVortCoreFlag = .false.
272 IF ( defined(14) .EQV. .true. )
THEN
273 IF ( nint(vals(14)) == 1 )
THEN
274 global%postWriteMergeFlag = .true.
276 global%postWriteMergeFlag = .false.
280 IF ( defined(15) .EQV. .true. )
THEN
281 IF ( nint(vals(15)) == 1 )
THEN
282 global%postCompErrFlag = .true.
284 global%postCompErrFlag = .false.
288 IF ( defined(16) .EQV. .true. )
THEN
289 IF ( nint(vals(16)) == 1 )
THEN
290 global%postOutputFormat = post_output_format_tecplot
291 ELSE IF ( nint(vals(16)) == 2 )
THEN
292 global%postOutputFormat = post_output_format_ensight
296 IF ( defined(17) .EQV. .true. )
THEN
297 global%postNServers = nint(vals(17))
300 IF ( defined(18) .EQV. .true. )
THEN
301 IF ( nint(vals(18)) == 1 )
THEN
302 global%postPlotPatchFlag = .true.
304 global%postPlotPatchFlag = .false.
308 IF ( defined(19) .EQV. .true. )
THEN
309 IF ( nint(vals(19)) == 1 )
THEN
310 global%postLag2EulFlag = .true.
312 global%postLag2EulFlag = .false.
316 IF ( defined(20) .EQV. .true. )
THEN
317 IF ( nint(vals(20)) == 1 )
THEN
318 global%postGradFlag = .true.
320 global%postGradFlag = .false.
subroutine registerfunction(global, funName, fileName)
subroutine readsection(global, fileID, nvals, keys, vals, defined)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE USE ModDataTypes USE nvals
subroutine deregisterfunction(global)
subroutine readpostsection(global)