57 TYPE(t_region
),
POINTER :: regions(:)
60 INTEGER :: ireg, ipatch
63 CHARACTER(10) :: keys(6)
64 CHARACTER(256) :: fname
67 INTEGER :: n1, n2, ioff, ijbeg, ijend, errorflag
71 REAL(RFREAL) :: vals(6)
78 global => regions(1)%global
81 'RFLO_ReadBcInjectAPNSection.F90' )
97 IF (distrib==bcdat_constant .AND. &
98 (.NOT. (defined(1).eqv..true.) .OR. &
99 .NOT. (defined(2).eqv..true.) .OR. &
100 .NOT. (defined(3).eqv..true.) .OR. &
101 .NOT. (defined(4).eqv..true.))) CALL
errorstop( global,err_bcval_missing,&
104 IF (.NOT. (defined(5).eqv..true.) .OR. &
105 .NOT. (defined(6).eqv..true.)) CALL
errorstop( global,err_bcval_missing,&
113 patch => regions(ireg)%levels(1)%patches(ipatch)
115 IF ((
patch%bcType>=bc_injection .AND. &
116 patch%bcType<=bc_injection+bc_range) .AND. &
117 regions(ireg)%procid==global%myProcid .AND. &
118 regions(ireg)%active==active)
THEN
120 patch%bcType = bc_injection_apn
122 IF (
patch%mixt%bcSet.eqv..true.) &
123 CALL
errorstop( global,err_patch_overspec,&
124 __line__,
'Injection boundary.' )
127 patch%mixt%nSwitches = 1
128 patch%mixt%bcSet = .true.
129 IF (
patch%bcCoupled == bc_external)
THEN
130 patch%mixt%distrib = bcdat_distrib
132 patch%mixt%distrib = distrib
137 ALLOCATE(
patch%mixt%switches(
patch%mixt%nSwitches), &
139 global%error = errorflag
140 IF (global%error /= 0) CALL
errorstop( global,err_allocate,&
143 patch%mixt%switches(bcswi_inject_extrap) = extrapol_const
145 patch%mixt%switches(bcswi_inject_extrap) = extrapol_linear
147 patch%mixt%maxChange = vals(6)
154 ijbeg = indij( 0, 0,ioff)
155 ijend = indij(n1,n2,ioff)
157 ALLOCATE(
patch%mixt%vals(
patch%mixt%nData,ijbeg:ijend), &
159 global%error = errorflag
160 IF (global%error /= 0) CALL
errorstop( global,err_allocate,&
165 IF (
patch%mixt%distrib==bcdat_distrib .AND. &
166 patch%bcCoupled /=bc_external )
THEN
174 patch%mixt%vals(bcdat_inject_sdens ,:) = abs( vals(1) )
175 patch%mixt%vals(bcdat_inject_acoeff,:) = abs( vals(2) )
176 patch%mixt%vals(bcdat_inject_npower,:) = abs( vals(3) )
177 patch%mixt%vals(bcdat_inject_temp ,:) = abs( vals(4) )
182 patch%mixt%distrib = bcdat_distrib
subroutine rflo_readbcfromfile(global, fname, patch)
subroutine registerfunction(global, funName, fileName)
**********************************************************************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 rflo_readbcinjectapnsection(regions)
subroutine readpatchsection(global, fileID, nvals, keys, vals, brbeg, brend, prbeg, prend, distrib, profType, fname, defined)
**********************************************************************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 USE ModDataTypes USE prend
**********************************************************************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 USE ModDataTypes USE prbeg
Vector_n min(const Array_n_const &v1, const Array_n_const &v2)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)