57 TYPE(t_region
),
POINTER :: regions(:)
58 INTEGER,
INTENT(IN) :: ireg
61 INTEGER :: ir, iedge,
icorner, ijk, icv
64 CHARACTER(CHRLEN) :: rcsidentstring
66 INTEGER :: ilev, iregsrc,
icell, ibuff, ncv, ndim, dest,
tag
68 REAL(RFREAL),
POINTER :: cv(:,:)
71 TYPE(t_level
),
POINTER :: level
72 TYPE(t_dcelltransf
),
POINTER :: sndpeuleccell
77 '$RCSfile: PEUL_SendCornerEdgeCells.F90,v $ $Revision: 1.3 $'
79 global => regions(ireg)%global
82 'PEUL_SendCornerEdgeCells.F90' )
86 ilev = regions(ireg)%currLevel
87 cv => regions(ireg)%levels(ilev)%peul%cv
88 ncv = regions(ireg)%levels(ilev)%peul%nCv
92 DO ir=1,global%nRegions
93 IF (regions(ir)%procid /= global%myProcid)
THEN
94 IF (regions(ireg)%levels(ilev)%sndPeulEcCells(ir)%nCells > 0)
THEN
96 sndpeuleccell => regions(ireg)%levels(ilev)%sndPeulEcCells(ir)
97 level => regions(ir)%levels(ilev)
98 ndim = sndpeuleccell%nCells
102 IF (level%edgeCells(iedge)%interact)
THEN
103 DO ijk=1,ubound(level%edgeCells(iedge)%cells,1)
104 iregsrc = level%edgeCells(iedge)%cells(ijk)%srcRegion
105 icell = level%edgeCells(iedge)%cells(ijk)%srcCell
106 IF (iregsrc == ireg)
THEN
109 sndpeuleccell%buff(ibuff+(icv-1)*ndim) = cv(icv,
icell)
116 IF (level%cornerCells(
icorner)%interact)
THEN
117 DO ijk=1,ubound(level%cornerCells(
icorner)%cells,1)
118 iregsrc = level%cornerCells(
icorner)%cells(ijk)%srcRegion
120 IF (iregsrc == ireg)
THEN
123 sndpeuleccell%buff(ibuff+(icv-1)*ndim) = cv(icv,
icell)
131 dest = regions(ir)%procid
132 tag = regions(ir)%localNumber + peul_tag_shift
133 CALL mpi_isend( sndpeuleccell%buff,ncv*ndim,mpi_rfreal, &
134 dest,
tag,global%mpiComm, &
135 global%requests(sndpeuleccell%iRequest),global%mpierr )
136 IF (global%mpierr /= 0) CALL
errorstop( global,err_mpi_trouble,__line__ )
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 icorner
**********************************************************************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 icell
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine peul_sendcorneredgecells(regions, iReg)
subroutine deregisterfunction(global)