70 TYPE(t_region
) :: region, regiondes
73 INTEGER :: ireg, iregdes
76 INTEGER :: idum,
i,
j,
k, ii, jj, kk
79 CHARACTER(CHRLEN) :: rcsidentstring
82 icoff, ijcoff, ijkd, ilev
83 INTEGER :: ibegdes, ienddes, jbegdes, jenddes, kbegdes, kenddes, &
84 idirdes, jdirdes, kdirdes, icoffdes, ijcoffdes, &
86 INTEGER :: lb, lbdes, l1desdir, l2desdir, mapmat(3,4), &
87 ndumcells, ndumcellsdes
89 INTEGER :: ibuff, ibuffdes, ibuffsrc, jbuffdes, jbuffsrc, &
90 kbuffdes, kbuffsrc, ijkbuffsrc, nbuffsizedes, nbuffsizesrc
94 INTEGER,
POINTER,
DIMENSION(:,:) :: paiv, paivdes, paivold, paivolddes
96 REAL(RFREAL),
POINTER,
DIMENSION(:,:) :: parv, parvdes, &
97 parvold, parvolddes, &
100 pdv, pdvdes, prhs, prhsdes, &
101 prhssum, prhssumdes, ptv, ptvdes
107 rcsidentstring =
'$RCSfile: PLAG_PatchExchangeConf.F90,v $ $Revision: 1.3 $'
109 global => region%global
112 'PLAG_PatchExchangeConf.F90' )
116 IF (regiondes%active == off)
THEN
117 CALL
errorstop( global,err_srcregion_off,__line__ )
122 ilev = region%currLevel
123 ndumcells = region%nDumCells
125 ilevdes = regiondes%currLevel
126 ndumcellsdes = regiondes%nDumCells
131 jbegdes,jenddes,kbegdes,kenddes )
139 paiv =>
patch%bufferPlag%aiv
140 parv =>
patch%bufferPlag%arv
141 pcv =>
patch%bufferPlag%cv
142 pdv =>
patch%bufferPlag%dv
143 ptv =>
patch%bufferPlag%tv
144 prhs =>
patch%bufferPlag%rhs
145 prhssum =>
patch%bufferPlag%rhsSum
147 paivold =>
patch%bufferPlag%aivOld
148 parvold =>
patch%bufferPlag%arvOld
149 pcvold =>
patch%bufferPlag%cvOld
151 paivdes => patchdes%bufferPlag%aiv
152 parvdes => patchdes%bufferPlag%arv
153 pcvdes => patchdes%bufferPlag%cv
154 pdvdes => patchdes%bufferPlag%dv
155 ptvdes => patchdes%bufferPlag%tv
156 prhsdes => patchdes%bufferPlag%rhs
157 prhssumdes => patchdes%bufferPlag%rhsSum
159 paivolddes => patchdes%bufferPlag%aivOld
160 parvolddes => patchdes%bufferPlag%arvOld
161 pcvolddes => patchdes%bufferPlag%cvOld
163 nbuffsizesrc =
patch%bufferPlag%nBuffSize
165 nbuffsizedes = nbuffsizesrc
166 patchdes%bufferPlag%nBuffSizeDes = nbuffsizedes
170 IF ( nbuffsizesrc == 0 ) goto 999
175 IF (
patch%srcL1beg >
patch%srcL1end) l1desdir = -1
177 IF (
patch%srcL2beg >
patch%srcL2end) l2desdir = -1
180 lbdes =
patch%srcLbound
186 ibegdes,ienddes,jbegdes,jenddes,kbegdes,kenddes, &
191 DO ibuff=1, nbuffsizesrc
193 ibuffsrc = paiv(aiv_plag_indexi,ibuff)
194 jbuffsrc = paiv(aiv_plag_indexj,ibuff)
195 kbuffsrc = paiv(aiv_plag_indexk,ibuff)
196 ijkbuffsrc = paiv(aiv_plag_icells,ibuff)
198 ijkcdes =
indijkmap(ibuffsrc,jbuffsrc,kbuffsrc,mapmat,icoffdes,ijcoffdes)
199 CALL
getijk(ijkcdes,icoffdes,ijcoffdes,ndumcellsdes,ibuffdes,jbuffdes,kbuffdes)
203 paivdes(aiv_plag_icells,ibuff) = ijkcdes
204 paivdes(aiv_plag_indexi,ibuff) = ibuffdes
205 paivdes(aiv_plag_indexj,ibuff) = jbuffdes
206 paivdes(aiv_plag_indexk,ibuff) = kbuffdes
208 paivdes(aiv_plag_pidini,ibuff) = paiv(aiv_plag_pidini,ibuff)
209 paivdes(aiv_plag_regini,ibuff) = paiv(aiv_plag_regini,ibuff)
210 paivdes(aiv_plag_regcrt,ibuff) = iregdes
211 paivdes(aiv_plag_burnstat,ibuff) = paiv(aiv_plag_burnstat,ibuff)
213 paivolddes(:,ibuff) = paivdes(:,ibuff)
217 parvdes(:,ibuff) = parv(:,ibuff)
218 pcvdes(:,ibuff) = pcv(:,ibuff)
219 pdvdes(:,ibuff) = pdv(:,ibuff)
220 prhsdes(:,ibuff) = prhs(:,ibuff)
221 prhssumdes(:,ibuff) = prhssum(:,ibuff)
222 ptvdes(:,ibuff) = ptv(:,ibuff)
224 parvolddes(:,ibuff) = parvold(:,ibuff)
225 pcvolddes(:,ibuff) = pcvold(:,ibuff)
231 patch%bufferPlag%nBuffSize = 0
**********************************************************************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 rflo_getpatchdirection(patch, idir, jdir, kdir)
subroutine plag_patchexchangeconf(region, regionDes, patch, patchDes, iReg, iRegDes)
INTEGER function indijkmap(i, j, k, mapMat, iOffset, ijOffset)
subroutine registerfunction(global, funName, fileName)
subroutine rflo_getpatchindices(region, patch, iLev, ibeg, iend, jbeg, jend, kbeg, kend)
**********************************************************************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 jdir
**********************************************************************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 idir
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 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 kdir
subroutine errorstop(global, errorCode, errorLine, addMessage)
**********************************************************************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
subroutine rflo_getpatchmapping(lb, lbs, l1SrcDir, l2SrcDir, align, idir, jdir, kdir, idirSrc, jdirSrc, kdirSrc, ibeg, iend, jbeg, jend, kbeg, kend, ibegSrc, iendSrc, jbegSrc, jendSrc, kbegSrc, kendSrc, mapMat)
**********************************************************************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 getijk(ijk, iOffset, ijOffset, nDumCells, i, j, k)