60 TYPE(t_region
),
POINTER :: regions(:)
63 INTEGER :: ireg, ipatch
66 INTEGER :: bctype, iregsrc, ipatchsrc, lb, dest,
source,
tag
69 INTEGER ::
status(mpi_status_size)
72 REAL(RFREAL) :: vec(6)
73 REAL(RFREAL),
POINTER :: xyz(:,:)
80 global => regions(1)%global
83 'RFLO_ExchangeGeometryPrepare.F90' )
87 DO ireg=1,global%nRegions
88 IF (regions(ireg)%procid==global%myProcid .AND. &
89 regions(ireg)%active==active)
THEN
93 DO ipatch=1,regions(ireg)%nPatches
94 patch => regions(ireg)%levels(1)%patches(ipatch)
100 IF ((bctype>=bc_regionconf .AND. bctype<=bc_regionconf+bc_range) .OR. &
101 (bctype>=bc_tra_peri .AND. bctype<=bc_tra_peri +bc_range) .OR. &
102 (bctype>=bc_rot_peri .AND. bctype<=bc_rot_peri +bc_range))
THEN
103 iregsrc =
patch%srcRegion
104 IF (regions(iregsrc)%active == off) &
105 CALL
errorstop( global,err_srcregion_off,__line__ )
107 IF (regions(iregsrc)%procid /= global%myProcid)
THEN
112 xyz => regions(ireg)%levels(1)%grid%xyz
113 IF (lb==1 .OR. lb==2)
THEN
114 vec(1:3) = xyz(1:3,indijk(
ibeg,
jend,
kbeg,inoff,ijnoff)) - &
116 vec(4:6) = xyz(1:3,indijk(
ibeg,
jbeg,kend,inoff,ijnoff)) - &
118 ELSE IF (lb==3 .OR. lb==4)
THEN
119 vec(1:3) = xyz(1:3,indijk(
ibeg,
jbeg,kend,inoff,ijnoff)) - &
121 vec(4:6) = xyz(1:3,indijk(
iend,
jbeg,
kbeg,inoff,ijnoff)) - &
123 ELSE IF (lb==5 .OR. lb==6)
THEN
124 vec(1:3) = xyz(1:3,indijk(
iend,
jbeg,
kbeg,inoff,ijnoff)) - &
126 vec(4:6) = xyz(1:3,indijk(
ibeg,
jend,
kbeg,inoff,ijnoff)) - &
130 dest = regions(iregsrc)%procid
131 tag = regions(iregsrc)%localNumber + mpi_patchoff*
patch%srcPatch
132 CALL mpi_isend( vec,6,mpi_rfreal,dest,
tag,global%mpiComm, &
133 global%requests(
patch%mixt%iRequest), &
135 IF (global%mpierr /= 0) &
136 CALL
errorstop( global,err_mpi_trouble,__line__ )
147 DO ireg=1,global%nRegions
148 IF (regions(ireg)%procid==global%myProcid .AND. &
149 regions(ireg)%active==active)
THEN
153 DO ipatch=1,regions(ireg)%nPatches
154 patch => regions(ireg)%levels(1)%patches(ipatch)
155 bctype =
patch%bcType
160 IF ((bctype>=bc_regionconf .AND. bctype<=bc_regionconf+bc_range) .OR. &
161 (bctype>=bc_tra_peri .AND. bctype<=bc_tra_peri +bc_range) .OR. &
162 (bctype>=bc_rot_peri .AND. bctype<=bc_rot_peri +bc_range))
THEN
163 iregsrc =
patch%srcRegion
164 ipatchsrc =
patch%srcPatch
165 patchsrc => regions(iregsrc)%levels(1)%patches(ipatchsrc)
167 IF (regions(iregsrc)%procid /= global%myProcid)
THEN
169 source = regions(iregsrc)%procid
170 tag = regions(ireg)%localNumber + mpi_patchoff*patchsrc%srcPatch
171 CALL mpi_recv( vec,6,mpi_rfreal,
source,
tag,global%mpiComm, &
173 IF (global%mpierr /= 0) &
174 CALL
errorstop( global,err_mpi_trouble,__line__ )
176 patch%l1VecSrc(1:3) = vec(1:3)
177 patch%l2VecSrc(1:3) = vec(4:6)
188 DO ireg=1,global%nRegions
189 IF (regions(ireg)%procid==global%myProcid .AND. &
190 regions(ireg)%active==active)
THEN
**********************************************************************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 ibeg
subroutine registerfunction(global, funName, fileName)
int status() const
Obtain the status of the attribute.
subroutine rflo_getnodeoffset(region, iLev, iNodeOffset, ijNodeOffset)
**********************************************************************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 knode iend
subroutine rflo_getpatchindicesnodes(region, patch, iLev, ibeg, iend, jbeg, jend, kbeg, kend)
subroutine rflo_clearsendrequests(regions, iReg, geometry)
**********************************************************************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 knode jend
CGAL::Point_2< R > source() const
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine rflo_exchangegeometryprepare(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 knode jbeg
**********************************************************************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 knode kbeg
subroutine deregisterfunction(global)