63 TYPE(t_region
) :: region
65 INTEGER,
INTENT(IN) :: ireg
71 CHARACTER(CHRLEN) :: rcsidentstring
76 INTEGER :: icplag, jcplag, kcplag
77 INTEGER :: icoff, ijcoff, ijkccell, ijkcplag, ijkecell, ilev
78 INTEGER :: ibegdummcell, ienddummcell, ibegphyscell, iendphyscell
79 INTEGER :: ibegcorncell, iendcorncell, ibegedgecell, iendedgecell
80 INTEGER :: lboundskipsum, nbuffsizetot, ndumcells, npatches, npcls
81 INTEGER :: ncorners,
nedges
83 INTEGER,
DIMENSION(6) :: lboundskip
84 INTEGER,
POINTER,
DIMENSION(:,:) :: paiv
88 TYPE(t_level
),
POINTER :: plevel
89 TYPE(t_plag),
POINTER :: pplag
90 TYPE(t_buffer_plag),
POINTER :: pcorncellsxbuff, pedgecellsxbuff
95 rcsidentstring =
'$RCSfile: PLAG_CECellsGetBufferSize.F90,v $ $Revision: 1.3 $'
97 global => region%global
100 'PLAG_CECellsGetBufferSize.F90' )
104 ilev = region%currLevel
105 ndumcells = region%nDumCells
109 npcls = region%levels(ilev)%plag%nPcls
110 nbuffsizetot = region%plagInput%nPclsBuffTot
114 plevel => region%levels(ilev)
121 IF( plevel%cornerCells(
icorner)%interact .EQV. .true. .AND. &
122 plevel%cornerCells(
icorner)%degenrt == degenerat_none )
THEN
123 DO ijk = 1, ubound(plevel%cornerCells(
icorner)%cells,1)
124 plevel%cornerCells(
icorner)%cells(ijk)%bufferExchPlag%nBuffSize = 0
130 IF( plevel%edgeCells(iedge)%interact .EQV. .true. .AND. &
131 plevel%edgeCells(iedge)%degenrt == degenerat_none )
THEN
132 DO ijk = 1, ubound(plevel%edgeCells(iedge)%cells,1)
133 plevel%edgeCells(iedge)%cells(ijk)%bufferExchPlag%nBuffSize = 0
141 IF ( npcls == 0 ) goto 999
151 ienddummcell = indijk(
idcend,
jdcend,kdcend,icoff,ijcoff)
153 #ifdef PLAG_CECELLS_DEBUG
154 WRITE(*,*)
' Inside PLAG_CECellsGetBufferSize: time,iReg,ijkDummBeg-End = ',&
164 iendphyscell = indijk(
ipcend,
jpcend,kpcend,icoff,ijcoff)
166 #ifdef PLAG_CECELLS_DEBUG
167 WRITE(*,*)
' Inside PLAG_CECellsGetBufferSize: time,iReg,iPcls,ijkPhysBeg-End = ',&
174 ijkcplag = paiv(aiv_plag_icells,ipcls)
175 icplag = paiv(aiv_plag_indexi,ipcls)
176 jcplag = paiv(aiv_plag_indexj,ipcls)
177 kcplag = paiv(aiv_plag_indexk,ipcls)
185 IF (icplag <
ipcbeg) lboundskip(1) = 1
186 IF (icplag >
ipcend) lboundskip(2) = 1
188 IF (jcplag <
jpcbeg) lboundskip(3) = 1
189 IF (jcplag >
jpcend) lboundskip(4) = 1
191 IF (kcplag <
kpcbeg) lboundskip(5) = 1
192 IF (kcplag > kpcend) lboundskip(6) = 1
194 lboundskipsum =
sum(lboundskip)
196 #ifdef PLAG_CECELLS_DEBUG
198 WRITE(*,*)
' Inside PLAG_CECellsGetBufferSize: time,iReg,iPcls,iCPlag,jCPlag,kCPlag,',&
199 ' ijkCPlag,lboundSkip,lboundSkipSum = ',&
200 global%currentTime+ global%dtMin,ireg,ipcls,icplag,jcplag,kcplag, &
201 ijkcplag,lboundskip,lboundskipsum
205 IF ( lboundskipsum == 0 ) goto 1999
207 #ifdef PLAG_CECELLS_DEBUG
209 WRITE(*,*)
' Inside PLAG_CECellsGetBufferSize: Particle Fails Skip Test-',&
210 'iReg,iPcls,iCPlag,jCPlag,kCPlag,ijkCPlag = ',&
211 ireg,ipcls,icplag,jcplag,kcplag,ijkcplag
221 IF( .NOT. plevel%cornerCells(
icorner)%interact ) goto 2999
225 IF( plevel%cornerCells(
icorner)%degenrt /= degenerat_none ) goto 2999
227 #ifdef PLAG_CECELLS_DEBUG
229 WRITE(*,*)
' Inside PLAG_CECellsGetBufferSize: Entering Corner Test -iReg,iPcls,iCorner = ',&
240 iendcorncell = indijk(
iend,
jend,kend,icoff,ijcoff)
249 pcorncellsxbuff => plevel%cornerCells(
icorner)%cells(ijk)%bufferExchPlag
251 ijkccell = indijk(
i,
j,
k,icoff,ijcoff)
252 IF ( ijkcplag == ijkccell )
THEN
254 pcorncellsxbuff%nBuffSize = pcorncellsxbuff%nBuffSize + 1
260 #ifdef PLAG_CECELLS_DEBUG
263 ' Inside PLAG_CECellsGetBufferSize: iReg,iPcls,iCorner,ijkbeg-end,ibeg-endCornCell ',&
264 ' pCornCellsXBuff%nBuffSize=',&
265 ireg,ipcls,iedge,
ibeg,
iend,
jbeg,
jend,
kbeg,kend,ibegcorncell, iendcorncell, &
266 pcorncellsxbuff%nBuffSize
281 IF (pclsfound) goto 1999
289 IF( .NOT. plevel%edgeCells(iedge)%interact ) goto 3999
293 IF( plevel%edgeCells(iedge)%degenrt /= degenerat_none ) goto 3999
295 #ifdef PLAG_CECELLS_DEBUG
297 WRITE(stdout,
'(A,7(3X,I4))') &
298 ' Inside PLAG_CECellsGetBufferSize: Entering Edge Test-iReg,iPcls,iEdge,ijkCPlag,i-j-kCPlag',&
299 ireg,ipcls,iedge,ijkcplag,icplag,jcplag,kcplag
309 iendedgecell = indijk(
iend,
jend,kend,icoff,ijcoff)
311 #ifdef PLAG_CECELLS_DEBUG
312 WRITE(stdout,
'(A,12(2X,I4))') &
313 ' Inside PLAG_CECellsGetBufferSize: iReg,iEdge,ijkbeg-end,ibeg-endEdgeCell =',&
324 pedgecellsxbuff => plevel%edgeCells(iedge)%cells(ijk)%bufferExchPlag
326 ijkecell = indijk(
i,
j,
k,icoff,ijcoff)
327 IF ( ijkcplag == ijkecell )
THEN
329 pedgecellsxbuff%nBuffSize = pedgecellsxbuff%nBuffSize + 1
332 #ifdef PLAG_CECELLS_DEBUG
339 WRITE(stdout,
'(A,12(2X,I4))') &
340 ' Inside PLAG_CECellsGetBufferSize: iReg,iPcls,iEdge,ijk,ijkCPlag,ijkECell,pEdgeCellsXBuff%nBuffSize=',&
341 ireg,ipcls,iedge,
i,
j,
k, &
343 pedgecellsxbuff%nBuffSize
361 #ifdef PLAG_CECELLS_DEBUG
363 WRITE(*,*)
' Inside PLAG_CECellsGetBufferSize: End of Particle Fails Skip Test-iReg,iPcls = ',&
subroutine rflo_getedgecellsindices(region, iLev, iedge, iebeg, ieend, jebeg, jeend, kebeg, keend)
**********************************************************************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
Tfloat sum() const
Return the sum of all the pixel values in an image.
**********************************************************************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 idcend
**********************************************************************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 kpcbeg
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 jpcbeg
**********************************************************************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 ipcend
subroutine rflo_getdimensdummy(region, iLev, idcbeg, idcend, jdcbeg, jdcend, kdcbeg, kdcend)
**********************************************************************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
**********************************************************************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 kdcbeg
**********************************************************************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 ipcbeg
subroutine rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
**********************************************************************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 idcbeg
**********************************************************************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
subroutine rflo_getcornercellsindices(region, iLev, icorner, icbeg, icend, jcbeg, jcend, kcbeg, kcend)
subroutine plag_cecellsgetbuffersize(region, iReg)
**********************************************************************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 jdcend
**********************************************************************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 jpcend
**********************************************************************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
**********************************************************************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 jdcbeg
**********************************************************************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)
subroutine rflo_getdimensphys(region, iLev, ipcbeg, ipcend, jpcbeg, jpcend, kpcbeg, kpcend)