63 INTEGER :: errorflag,l, ival,
nvals
64 INTEGER,
PARAMETER :: nvals_max = 10
65 CHARACTER(10) :: keys(nvals_max)
66 LOGICAL :: defined(nvals_max)
67 CHARACTER(256) ::
line(nvals_max)
68 INTEGER :: vals(nvals_max)
73 'ReadStatisticSection.F90' )
81 keys( 3) =
'MIXTNSTAT'
82 keys( 4) =
'MIXTSTATID'
83 keys( 5) =
'TURBNSTAT'
84 keys( 6) =
'TURBSTATID'
85 keys( 7) =
'PLAGNSTAT'
86 keys( 8) =
'PLAGSTATID'
87 keys( 9) =
'PEULNSTAT'
88 keys(10) =
'PEULSTATID'
92 IF (defined( 1).eqv..true.)
READ (
line(1),*) global%doStat
93 IF (defined( 2).eqv..true.)
READ (
line(2),*) global%reStat
94 IF (defined( 3).eqv..true.)
READ (
line(3),*) global%mixtNStat
96 IF (defined( 5).eqv..true.)
READ (
line(5),*) global%turbNStat
99 IF (defined( 7).eqv..true.)
READ (
line(7),*) global%plagNStat
102 IF (defined( 9).eqv..true.)
READ (
line(9),*) global%peulNStat
107 IF ((defined( 1).eqv..true.).AND.(global%doStat==active).AND. &
108 (defined( 3).eqv..true.).AND.(global%mixtNStat > 0) .AND. &
109 (defined( 4).eqv..true.))
THEN
110 ALLOCATE( global%mixtStatId(2,global%mixtNStat),stat=errorflag )
111 global%error = errorflag
112 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
113 READ(
line(4),*) (global%mixtStatId(1,l),l=1,global%mixtNStat)
115 nullify( global%mixtStatId )
118 IF ((defined(4).eqv..true.).AND.(global%doStat==active).AND.(global%mixtNStat > 0))
THEN
119 global%mixtStatId(2,:)= mod(global%mixtStatId(1,:),10)
120 global%mixtStatId(1,:)= (global%mixtStatId(1,:)-global%mixtStatId(2,:))/10
126 IF ((defined( 1).eqv..true.).AND.(global%doStat==active).AND. &
127 (defined( 5).eqv..true.).AND.(global%turbNStat > 0) .AND. &
128 (defined( 6).eqv..true.))
THEN
129 ALLOCATE( global%turbStatId(2,global%turbNStat),stat=errorflag )
130 global%error = errorflag
131 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
132 READ(
line(6),*) (global%turbStatId(1,l),l=1,global%turbNStat)
134 nullify( global%turbStatId )
137 IF ((defined(6).eqv..true.).AND.(global%doStat==active).AND.(global%turbNStat > 0))
THEN
138 global%turbStatId(2,:)= mod(global%turbStatId(1,:),10)
139 global%turbStatId(1,:)= (global%turbStatId(1,:)-global%turbStatId(2,:))/10
146 IF ((defined( 1).eqv..true.).AND.(global%doStat==active).AND. &
147 (defined( 7).eqv..true.).AND.(global%plagNStat > 0) .AND. &
148 (defined( 8).eqv..true.))
THEN
149 ALLOCATE( global%plagStatId(2,global%plagNStat),stat=errorflag )
150 global%error = errorflag
151 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
152 READ(
line(8),*) (global%plagStatId(1,l),l=1,global%plagNStat)
154 nullify( global%plagStatId )
157 IF ((defined(8).eqv..true.).AND.(global%doStat==active).AND.(global%plagNStat > 0))
THEN
158 global%plagStatId(2,:)= mod(global%plagStatId(1,:),10)
159 global%plagStatId(1,:)= (global%plagStatId(1,:)-global%plagStatId(2,:))/10
166 IF ((defined( 1).eqv..true.).AND.(global%doStat==active).AND. &
167 (defined( 9).eqv..true.).AND.(global%peulNStat > 0) .AND. &
168 (defined(10).eqv..true.))
THEN
169 ALLOCATE( global%peulStatId(2,global%peulNStat),stat=errorflag )
170 global%error = errorflag
171 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
172 READ(
line(10),*) (global%peulStatId(1,l),l=1,global%peulNStat)
174 nullify( global%peulStatId )
177 IF ((defined(10).eqv..true.).AND.(global%doStat==active).AND.(global%peulNStat > 0))
THEN
178 global%peulStatId(2,:)= mod(global%peulStatId(1,:),10)
179 global%peulStatId(1,:)= (global%peulStatId(1,:)-global%peulStatId(2,:))/10
185 IF (global%doStat == active)
THEN
190 IF (.NOT. (defined(ival).eqv..true.))
THEN
191 CALL
errorstop( global,err_stats_input,__line__,keys(ival) )
193 IF ((.NOT. (defined(3).eqv..true.)) .AND. &
194 (.NOT. (defined(5).eqv..true.)))
THEN
195 CALL
errorstop( global,err_stats_input,__line__, &
196 'mixture or module NSTAT not defined' )
200 CALL
errorstop( global,err_stats_input,__line__, &
201 'DOSTAT=1 but executable is not compiled with STATS=1' )
207 IF (defined(ival).eqv..true.)
THEN
208 IF (global%mixtNStat > 0)
THEN
210 IF (.NOT. (defined(ival).eqv..true.))
THEN
211 CALL
errorstop( global,err_stats_input,__line__,keys(ival) )
213 ELSEIF (global%mixtNStat < 0)
THEN
214 CALL
errorstop( global,err_stats_input,__line__,
'mixtNSTAT < 0' )
222 IF (defined(ival).eqv..true.)
THEN
223 IF (global%turbNStat > 0)
THEN
225 IF (.NOT. (defined(ival).eqv..true.))
THEN
226 CALL
errorstop( global,err_stats_input,__line__,keys(ival) )
228 ELSEIF (global%turbNStat < 0)
THEN
229 CALL
errorstop( global,err_stats_input,__line__,
'turbNSTAT < 0' )
238 IF (defined(ival).eqv..true.)
THEN
239 IF (global%plagNStat > 0)
THEN
241 IF (.NOT. (defined(ival).eqv..true.))
THEN
242 CALL
errorstop( global,err_stats_input,__line__,keys(ival) )
244 ELSEIF (global%plagNStat < 0)
THEN
245 CALL
errorstop( global,err_stats_input,__line__,
'plagNSTAT < 0' )
254 IF (defined(ival).eqv..true.)
THEN
255 IF (global%peulNStat > 0)
THEN
257 IF (.NOT. (defined(ival).eqv..true.))
THEN
258 CALL
errorstop( global,err_stats_input,__line__,keys(ival) )
260 ELSEIF (global%peulNStat < 0)
THEN
261 CALL
errorstop( global,err_stats_input,__line__,
'peulNSTAT < 0' )
CImg< T > & line(const unsigned int y0)
Get a line.
subroutine readstringsection(global, fileID, nvals, keys, vals, defined)
subroutine registerfunction(global, funName, fileName)
subroutine readstatisticsection(global)
**********************************************************************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 errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)