65 TYPE(t_region
),
POINTER :: regions(:)
67 INTEGER,
INTENT(IN) :: ireg
73 CHARACTER(CHRLEN) :: rcsidentstring
76 INTEGER :: statusplag(mpi_status_size)
79 INTEGER :: ilev,ir,ndimbuffsize,
source,
tag
81 TYPE(t_dcelltransf
),
POINTER :: precveccell
83 TYPE(t_level
),
POINTER :: plevel
84 TYPE(t_region
),
POINTER :: pregion
90 rcsidentstring =
'$RCSfile: PLAG_CECellsRecvSize.F90,v $ $Revision: 1.4 $'
92 global => regions(ireg)%global
95 'PLAG_CECellsRecvSize.F90' )
101 ilev = regions(ireg)%currLevel
109 pregion => regions(ireg)
110 plevel => regions(ireg)%levels(ilev)
116 DO ir=1,global%nRegions
117 IF (regions(ir)%procid /= global%myProcid)
THEN
118 IF (plevel%recvEcCells(ir)%nCells > 0)
THEN
119 precveccell => plevel%recvEcCells(ir)
122 source = regions(ir)%procid
123 tag = regions(ireg)%localNumber +plag_tag_shift +mpi_patchoff +1000
125 IF(
tag .gt. global%mpiTagMax)
tag = mod(
tag,global%mpiTagMax)
126 CALL mpi_recv( precveccell%nBuffSizePlag,ndimbuffsize,mpi_integer, &
127 source,
tag,global%mpiComm,statusplag,global%mpierr )
128 IF ( global%mpierr /= err_none ) &
129 CALL
errorstop( global,err_mpi_trouble,__line__ )
132 #ifdef PLAG_CECELLS_MPI_DEBUG
133 IF ( precveccell%nBuffSizePlag > 0 ) &
134 WRITE(stdout,*)
' PLAG_CECellsRecvSize: iRegDes, iRegSrc, procSrc, tagSrc, nBuffSizePlag = ',&
135 ireg, ir,
source,
tag,precveccell%nBuffSizePlag
subroutine registerfunction(global, funName, fileName)
subroutine plag_cecellsrecvsize(regions, iReg)
CGAL::Point_2< R > source() const
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)