57 TYPE(t_region
),
POINTER :: regions(:)
60 INTEGER :: ireg, ipatch
63 CHARACTER(10) :: keys(4)
64 CHARACTER(256) :: fname
67 INTEGER :: n1, n2, ioff, ijbeg, ijend, errorflag
71 REAL(RFREAL) :: vals(4)
78 global => regions(1)%global
81 'RFLO_ReadBcInjectMrateSection.F90' )
95 IF (distrib==bcdat_constant .AND. &
96 (.NOT. (defined(1).eqv..true.) .OR. &
97 .NOT. (defined(2).eqv..true.))) CALL
errorstop( global,err_bcval_missing,__line__ )
99 IF (.NOT. (defined(3).eqv..true.) .OR. &
100 .NOT. (defined(4).eqv..true.)) CALL
errorstop( global,err_bcval_missing,__line__ )
107 patch => regions(ireg)%levels(1)%patches(ipatch)
109 IF ((
patch%bcType>=bc_injection .AND. &
110 patch%bcType<=bc_injection+bc_range) .AND. &
111 regions(ireg)%procid==global%myProcid .AND. &
112 regions(ireg)%active==active)
THEN
117 IF (
patch%mixt%bcSet.eqv..true.) &
118 CALL
errorstop( global,err_patch_overspec,__line__,
'Injection boundary.' )
121 patch%mixt%nSwitches = 1
122 patch%mixt%bcSet = .true.
123 IF (
patch%bcCoupled == bc_external)
THEN
124 patch%mixt%distrib = bcdat_distrib
126 patch%mixt%distrib = distrib
131 ALLOCATE(
patch%mixt%switches(
patch%mixt%nSwitches), &
133 global%error = errorflag
134 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
136 patch%mixt%switches(bcswi_inject_extrap) = extrapol_const
138 patch%mixt%switches(bcswi_inject_extrap) = extrapol_linear
140 patch%mixt%maxChange = vals(4)
144 IF (
patch%mixt%distrib == bcdat_distrib)
THEN
148 ijbeg = indij( 0, 0,ioff)
149 ijend = indij(n1,n2,ioff)
154 ALLOCATE(
patch%mixt%vals(
patch%mixt%nData,ijbeg:ijend), &
156 global%error = errorflag
157 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
161 IF (
patch%mixt%distrib==bcdat_distrib .AND. &
162 patch%bcCoupled /=bc_external )
THEN
170 patch%mixt%vals(bcdat_inject_mfrate,:) = vals(1)
171 patch%mixt%vals(bcdat_inject_temp ,:) = vals(2)
subroutine rflo_readbcinjectmratesection(regions)
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 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)