54 TYPE(t_region
),
POINTER :: regions(:)
57 CHARACTER(2*CHRLEN+9) :: fname
58 CHARACTER(256) ::
line
66 global => regions(1)%global
69 'PREP_ReadBcInputFile.F90' )
73 WRITE(fname,
'(A)') trim(global%inDir)//trim(global%casename)//
'.bc'
74 OPEN(if_input,file=fname,
form=
'formatted',
status=
'old',iostat=errorflag)
75 global%error = errorflag
76 IF (global%error /= 0) &
77 CALL
errorstop( global,err_file_open,__line__,
'File: '//trim(fname) )
81 ALLOCATE( global%prepBcDefined(bc_code_max) ,stat=errorflag )
82 global%error = errorflag
83 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
87 global%prepBcDefined(:) = .false.
90 READ(if_input,
'(A256)',err=10,
end=86)
line
91 SELECT CASE(trim(
line))
94 global%prepBcDefined(bc_slipwall) = .true.
97 global%prepBcDefined(bc_noslipwall) = .true.
101 global%prepBcDefined(bc_inflow) = .true.
104 CASE (
'# BC_INFLOW_TOTANG')
105 global%prepBcDefined(bc_inflow_totang) = .true.
107 CASE (
'# BC_INFLOW_VELTEMP')
108 global%prepBcDefined(bc_inflow_veltemp) = .true.
110 CASE (
'# BC_INFLOW_VELPRESS')
111 global%prepBcDefined(bc_inflow_velpress) = .true.
113 CASE (
'# BC_OUTFLOW')
114 global%prepBcDefined(bc_outflow) = .true.
117 global%prepBcDefined(bc_farfield) = .true.
120 global%prepBcDefined(bc_injection) = .true.
122 CASE (
'# BC_INJECT_APN')
123 global%prepBcDefined(bc_injection) = .true.
132 CLOSE(if_input,iostat=errorflag)
133 global%error = errorflag
134 IF (global%error /= 0) &
135 CALL
errorstop( global,err_file_close,__line__,
'File: '//trim(fname) )
143 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 form
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)