71 INTEGER,
INTENT(IN) :: fileposition
74 LOGICAL,
INTENT(OUT) :: fileexists
80 CHARACTER(CHRLEN) :: ifilename,rcsidentstring
87 rcsidentstring =
'$RCSfile: RFLU_OpenRestartInfo.F90,v $ $Revision: 1.6 $'
90 'RFLU_OpenRestartInfo.F90')
92 IF ( global%myProcid == masterproc .AND. &
93 global%verbLevel > verbose_low )
THEN
94 WRITE(stdout,
'(A,1X,A)') solver_name, &
95 'Opening restart info file...'
104 INQUIRE(file=ifilename,exist=fileexists)
106 IF ( fileexists .EQV. .true. )
THEN
107 IF ( fileposition == file_position_start )
THEN
108 OPEN(if_restinfo,file=ifilename,
form=
'FORMATTED',
status=
'OLD', &
110 ELSE IF ( fileposition == file_position_end )
THEN
111 OPEN(if_restinfo,file=ifilename,
form=
'FORMATTED',
status=
'OLD', &
112 position=
'APPEND',iostat=errorflag)
114 CALL
errorstop(global,err_reached_default,__line__)
117 OPEN(if_restinfo,file=ifilename,
form=
'FORMATTED',
status=
'NEW', &
121 global%error = errorflag
122 IF ( global%error /= 0 )
THEN
123 CALL
errorstop(global,err_file_open,__line__,
'File: '//trim(ifilename))
130 IF ( global%myProcid == masterproc .AND. &
131 global%verbLevel > verbose_low )
THEN
132 WRITE(stdout,
'(A,1X,A)') solver_name, &
133 'Opening restart info file done.'
subroutine registerfunction(global, funName, fileName)
int status() const
Obtain the status of the attribute.
subroutine buildfilenameplain(global, dest, ext, fileName)
subroutine rflu_openrestartinfo(global, filePosition, fileExists)
**********************************************************************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 errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)