59 TYPE(t_region
),
POINTER :: regions(:)
65 CHARACTER(CHRLEN) :: rcsidentstring
66 CHARACTER(CHRLEN+4) :: fname
67 CHARACTER(256) ::
line
69 LOGICAL :: usedsomewhere, unusedsomewhere
71 INTEGER :: errorflag, readstatus
77 rcsidentstring =
'$RCSfile: PLAG_ReadInputFile.F90,v $ $Revision: 1.4 $'
79 global => regions(1)%global
82 'PLAG_ReadInputFile.F90' )
86 fname = trim(global%inDir)//trim(global%casename)//
'.inp'
87 OPEN(if_input,file=fname,
form=
'formatted',
status=
'old',iostat=errorflag )
88 global%error = errorflag
89 IF ( global%error /= err_none )
THEN
90 CALL
errorstop( global, err_file_open,__line__,
'File: '//trim(fname) )
96 READ(if_input,
'(A256)',err=10,
end=86)
line
98 SELECT CASE(trim(
line))
100 IF ( global%myProcid == masterproc .AND. &
101 global%verbLevel > verbose_none )
THEN
102 WRITE(stdout,
'(A,3X,A)') solver_name, &
103 'Reading PLAG_ReadDisPartSection...'
107 CASE (
'# DISPART_NCONT')
108 IF ( global%myProcid == masterproc .AND. &
109 global%verbLevel > verbose_none )
THEN
110 WRITE(stdout,
'(A,3X,A)') solver_name, &
111 'Reading PLAG_ReadDisPartnContSection...'
116 CASE (
'# DISPART_INIT')
117 IF ( global%myProcid == masterproc .AND. &
118 global%verbLevel > verbose_none )
THEN
119 WRITE(stdout,
'(A,3X,A)') solver_name, &
120 'Reading PLAG_ReadDisPartInitSection...'
131 CLOSE( if_input,iostat=errorflag )
132 global%error = errorflag
133 IF (global%error /= err_none)
THEN
134 CALL
errorstop( global, err_file_close,__line__,
'File: '//trim(fname) )
139 usedsomewhere = .false.
140 unusedsomewhere = .false.
142 DO ireg = lbound(regions,1),ubound(regions,1)
143 readstatus = regions(ireg)%plagInput%readStatus
144 usedsomewhere = usedsomewhere .OR.(readstatus == 1)
145 unusedsomewhere = unusedsomewhere.OR.(readstatus /= 1)
148 IF (usedsomewhere.AND.unusedsomewhere)
THEN
149 CALL
errorstop( global,err_mp_allornone,__line__ )
152 global%plagUsed = usedsomewhere
160 CALL
errorstop( global, err_file_read,__line__,
'File: '//trim(fname) )
subroutine plag_readdispartinitsection(regions)
CImg< T > & line(const unsigned int y0)
Get a line.
subroutine registerfunction(global, funName, fileName)
int status() const
Obtain the status of the attribute.
**********************************************************************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 plag_readdispartsection(regions)
subroutine plag_readdispartncontsection(regions)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)