61 CHARACTER(CHRLEN) :: RCSIdentString = &
62 '$RCSfile: RFLO_ModRestartInfo.F90,v $ $Revision: 1.5 $'
107 INTEGER,
INTENT(IN) :: fileposition
110 LOGICAL,
INTENT(OUT) :: fileexists
116 CHARACTER(CHRLEN) :: ifilename
124 'RFLO_ModRestartInfo.F90')
126 IF ( global%myProcid == masterproc .AND. &
127 global%verbLevel > verbose_low )
THEN
128 WRITE(stdout,
'(A,1X,A)') solver_name, &
129 'Opening restart info file...'
138 INQUIRE(file=ifilename,exist=fileexists)
140 IF ( fileexists .EQV. .true. )
THEN
141 IF ( fileposition == file_position_start )
THEN
142 OPEN(if_restinfo,file=ifilename,
form=
'FORMATTED',
status=
'OLD', &
144 ELSE IF ( fileposition == file_position_end )
THEN
145 OPEN(if_restinfo,file=ifilename,
form=
'FORMATTED',
status=
'OLD', &
146 position=
'APPEND',iostat=errorflag)
148 CALL
errorstop(global,err_reached_default,&
152 OPEN(if_restinfo,file=ifilename,
form=
'FORMATTED',
status=
'NEW', &
156 global%error = errorflag
157 IF ( global%error /= 0 )
THEN
159 __line__,
'File: '//trim(ifilename))
166 IF ( global%myProcid == masterproc .AND. &
167 global%verbLevel > verbose_low )
THEN
168 WRITE(stdout,
'(A,1X,A)') solver_name, &
169 'Opening restart info file done.'
210 CHARACTER(CHRLEN) :: ifilename
218 'RFLO_ModRestartInfo.F90')
220 IF ( global%myProcid == masterproc .AND. &
221 global%verbLevel > verbose_low )
THEN
222 WRITE(stdout,
'(A,1X,A)') solver_name,
'Closing restart info file...'
231 CLOSE(if_restinfo,iostat=errorflag)
232 global%error = errorflag
233 IF ( global%error /= 0 )
THEN
235 __line__,
'File: '//trim(ifilename))
242 IF ( global%myProcid == masterproc .AND. &
243 global%verbLevel > verbose_low )
THEN
244 WRITE(stdout,
'(A,1X,A)') solver_name,
'Closing restart info file done.'
283 LOGICAL :: fileexists
284 INTEGER :: dummyinteger,errorflag
285 REAL(RFREAL) :: dummyrfreal
292 'RFLO_ModRestartInfo.F90')
294 IF ( global%myProcid == masterproc .AND. &
295 global%verbLevel > verbose_none )
THEN
296 WRITE(stdout,
'(A,1X,A)') solver_name, &
297 'Reading restart info file...'
310 IF ( global%flowType == flow_steady )
THEN
311 global%currentIter = 0
313 IF ( fileexists .EQV. .true. )
THEN
315 READ(if_restinfo,*,iostat=errorflag) dummyinteger
317 IF ( errorflag /= err_none )
THEN
320 global%currentIter = dummyinteger
325 global%currentTime = 0.0_rfreal
327 IF ( fileexists .EQV. .true. )
THEN
329 READ(if_restinfo,*,iostat=errorflag) dummyrfreal
331 IF ( errorflag /= err_none )
THEN
334 global%currentTime = dummyrfreal
335 global%timeStamp = global%currentTime
345 IF ( global%myProcid == masterproc .AND. &
346 global%verbLevel > verbose_low )
THEN
347 IF ( global%flowType == flow_steady )
THEN
348 WRITE(stdout,
'(A,3X,A,1X,I6.6)') solver_name, &
349 'Restart iteration:',global%currentIter
351 WRITE(stdout,
'(A,3X,A,1X,1PE11.5)') solver_name, &
352 'Restart time:',global%currentTime
366 IF ( global%myProcid == masterproc .AND. &
367 global%verbLevel > verbose_none )
THEN
368 WRITE(stdout,
'(A,1X,A)') solver_name, &
369 'Reading restart info file done.'
411 LOGICAL :: dummylogical
418 'RFLO_ModRestartInfo.F90')
424 IF ( global%myProcid == masterproc )
THEN
427 IF ( global%flowType == flow_steady )
THEN
428 WRITE(if_restinfo,*) global%currentIter
430 WRITE(if_restinfo,*) global%currentTime
subroutine rflo_closerestartinfo(global)
subroutine registerfunction(global, funName, fileName)
int status() const
Obtain the status of the attribute.
subroutine, public rflo_writerestartinfo(global)
subroutine buildfilenameplain(global, dest, ext, fileName)
**********************************************************************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 SUBROUTINE form
subroutine, public rflo_readrestartinfo(global)
subroutine rflo_openrestartinfo(global, filePosition, fileExists)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)