57 TYPE(t_region
),
POINTER :: regions(:)
60 INTEGER :: ireg, ipatch
63 CHARACTER(10) :: keys(5)
64 CHARACTER(256) :: fname
67 INTEGER :: n1, n2, ioff, ijbeg, ijend, errorflag
71 REAL(RFREAL) :: vals(5)
78 global => regions(1)%global
81 'RFLO_ReadBcFarfSection.F90' )
96 IF (distrib==bcdat_constant .AND. &
97 (.NOT. (defined(1).eqv..true.) .OR. &
98 .NOT. (defined(2).eqv..true.) .OR. &
99 .NOT. (defined(3).eqv..true.) .OR. &
100 .NOT. (defined(4).eqv..true.) .OR. &
101 .NOT. (defined(5).eqv..true.))) CALL
errorstop( global,err_bcval_missing,&
109 patch => regions(ireg)%levels(1)%patches(ipatch)
111 IF ((
patch%bcType>=bc_farfield .AND. &
112 patch%bcType<=bc_farfield+bc_range) .AND. &
113 regions(ireg)%procid==global%myProcid .AND. &
114 regions(ireg)%active==active)
THEN
116 IF (
patch%mixt%bcSet.eqv..true.) &
117 CALL
errorstop( global,err_patch_overspec,&
118 __line__,
'Farfield boundary.' )
121 patch%mixt%nSwitches = 0
122 patch%mixt%bcSet = .true.
123 IF (
patch%bcCoupled == bc_external)
THEN
124 patch%mixt%distrib = bcdat_distrib
126 patch%mixt%distrib = distrib
131 IF (
patch%mixt%distrib == bcdat_distrib)
THEN
135 ijbeg = indij( 0, 0,ioff)
136 ijend = indij(n1,n2,ioff)
141 ALLOCATE(
patch%mixt%vals(
patch%mixt%nData,ijbeg:ijend), &
143 global%error = errorflag
144 IF (global%error /= 0) CALL
errorstop( global,err_allocate,&
149 IF (
patch%mixt%distrib==bcdat_distrib .AND. &
150 patch%bcCoupled /=bc_external )
THEN
153 patch%mixt%vals(bcdat_farf_attack,:) = &
154 patch%mixt%vals(bcdat_farf_attack,:)*global%rad
155 patch%mixt%vals(bcdat_farf_slip ,:) = &
156 patch%mixt%vals(bcdat_farf_slip ,:)*global%rad
161 patch%mixt%vals(bcdat_farf_mach ,:) = vals(1)
162 patch%mixt%vals(bcdat_farf_attack,:) = vals(2)*global%rad
163 patch%mixt%vals(bcdat_farf_slip ,:) = vals(3)*global%rad
164 patch%mixt%vals(bcdat_farf_press ,:) = vals(4)
165 patch%mixt%vals(bcdat_farf_temp ,:) = vals(5)
subroutine rflo_readbcfromfile(global, fname, patch)
subroutine registerfunction(global, funName, fileName)
subroutine rflo_readbcfarfsection(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 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)