57 TYPE(t_region
),
POINTER :: regions(:)
63 CHARACTER(CHRLEN) :: rcsidentstring
64 CHARACTER(CHRLEN+4) :: fname
65 CHARACTER(256) ::
line
67 LOGICAL :: usedsomewhere, unusedsomewhere
75 rcsidentstring =
'$RCSfile: INRT_ReadInputFile.F90,v $ $Revision: 1.3 $'
77 global => regions(1)%global
80 'INRT_ReadInputFile.F90' )
84 fname = trim(global%inDir)//trim(global%casename)//
'.inp'
90 OPEN(if_input,file=fname,
form=
'formatted',
status=
'old',iostat=errorflag)
91 global%error = errorflag
92 IF (global%error /= 0) &
93 CALL
errorstop( global,err_file_open,__line__,
'File: '//trim(fname) )
102 READ(if_input,
'(A256)',err=10,
end=86)
line
104 SELECT CASE(trim(
line))
106 CASE (
'# INRT_DEFAULT')
117 READ(if_input,
'(A256)',err=10,
end=87)
line
119 SELECT CASE(trim(
line))
124 CASE (
'# INRT_HEAT_TRANSFER_NONBURN')
127 CASE (
'# INRT_SCOURING')
130 CASE (
'# INRT_BURNING')
133 CASE (
'# INRT_BOILING_REGULATION')
142 CALL
errorstop( global,err_reached_default,__line__ )
148 CLOSE(if_input,iostat=errorflag)
149 global%error = errorflag
150 IF (global%error /= 0) &
151 CALL
errorstop( global,err_file_close,__line__,
'File: '//trim(fname) )
157 usedsomewhere = .false.
158 unusedsomewhere = .false.
160 DO ireg = lbound(regions,1),ubound(regions,1)
161 usedsomewhere = usedsomewhere .OR. &
162 regions(ireg)%inrtInput%defaultRead
163 unusedsomewhere = unusedsomewhere .OR. &
164 .NOT.regions(ireg)%inrtInput%defaultRead
167 IF (usedsomewhere.AND.unusedsomewhere)
THEN
168 CALL
errorstop( global,err_mp_allornone,__line__ )
171 global%inrtUsed = usedsomewhere
179 CALL
errorstop( global,err_file_read,__line__,
'File: '//trim(fname) )
CImg< T > & line(const unsigned int y0)
Get a line.
subroutine inrt_readburning(regions)
subroutine registerfunction(global, funName, fileName)
int status() const
Obtain the status of the attribute.
subroutine inrt_readscouring(regions)
subroutine inrt_readboilingregulation(regions)
**********************************************************************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 inrt_readdefaultsection(regions)
subroutine inrt_readheattransfernonburn(regions)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
subroutine inrt_readdrag(regions)