57 TYPE(t_region
),
POINTER :: regions(:)
60 INTEGER :: iread, ireg
63 CHARACTER(CHRLEN) :: rcsidentstring
64 CHARACTER(CHRLEN+4) :: fname
65 CHARACTER(256) ::
line
67 LOGICAL :: usedsomewhere, unusedsomewhere
69 INTEGER :: errorflag, iptype, nptypes, nsecs,
brbeg, brend, readstatus
75 rcsidentstring =
'$RCSfile: PEUL_ReadInputFile.F90,v $ $Revision: 1.3 $'
77 global => regions(1)%global
80 'PEUL_ReadInputFile.F90' )
86 fname = trim(global%inDir)//trim(global%casename)//
'.inp'
92 OPEN(if_input,file=fname,
form=
'formatted',
status=
'old',iostat=errorflag)
93 global%error = errorflag
94 IF (global%error /= 0) &
95 CALL
errorstop( global,err_file_open,__line__,
'File: '//trim(fname) )
106 READ(if_input,
'(A256)',err=10,
end=86)
line
108 SELECT CASE(trim(
line))
113 ELSE IF (nsecs > 1)
THEN
114 IF (iptype /= nptypes) &
115 CALL
errorstop( global,err_peul_nptypes,__line__ )
120 CASE (
'# CONPART_PTYPE')
122 CALL
errorstop( global,err_peul_ptype,__line__ )
132 ELSE IF (nsecs > 1)
THEN
133 IF (iptype /= nptypes) &
134 CALL
errorstop( global,err_peul_nptypes,__line__ )
140 READ(if_input,
'(A256)',err=10,
end=87)
line
142 SELECT CASE(trim(
line))
148 CASE (
'# CONPART_PTYPE')
161 CLOSE(if_input,iostat=errorflag)
162 global%error = errorflag
163 IF (global%error /= 0) &
164 CALL
errorstop( global,err_file_close,__line__,
'File: '//trim(fname) )
172 usedsomewhere = .false.
173 unusedsomewhere = .false.
175 DO ireg = lbound(regions,1),ubound(regions,1)
176 readstatus = regions(ireg)%peulInput%readStatus
177 usedsomewhere = usedsomewhere .OR.(readstatus == 1)
178 unusedsomewhere = unusedsomewhere.OR.(readstatus /= 1)
181 IF (usedsomewhere.AND.unusedsomewhere)
THEN
182 CALL
errorstop( global,err_mp_allornone,__line__ )
185 global%peulUsed = usedsomewhere
193 CALL
errorstop( global,err_file_read,__line__,
'File: '//trim(fname) )
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 brbeg
subroutine peul_readconpartsection(regions, nPtypes, brbeg, brend)
**********************************************************************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)
subroutine peul_readconpartptypesection(regions, brbeg, brend, iPtype)