60 TYPE(t_region
) :: region
65 INTEGER :: ipatch, ipcls
68 CHARACTER(CHRLEN) :: rcsidentstring
72 lbound, n1, n2, nbuffsizedes, noff, npatches, &
73 npcls, npclsbufftot, npclsend, npclsprev, npclsstart
75 INTEGER,
POINTER,
DIMENSION(:,:) :: paiv, paivbuff, paivold, paivoldbuff
77 LOGICAL :: plagregionin, plagpatchdumcell
79 REAL(RFREAL),
POINTER,
DIMENSION(:,:) :: parv, parvbuff, &
80 parvold, parvoldbuff, &
84 prhs, prhsbuff, prhssum, &
85 prhssumbuff, ptv, ptvbuff
87 TYPE(t_patch),
POINTER :: ppatch
88 TYPE(t_plag),
POINTER :: pplag
94 rcsidentstring =
'$RCSfile: PLAG_AppendDataFromBuffers.F90,v $ $Revision: 1.4 $'
96 global => region%global
99 'PLAG_AppendDataFromBuffers.F90' )
103 ilev = region%currLevel
104 npatches = region%nPatches
106 npcls = region%levels(ilev)%plag%nPcls
107 npclsbufftot = region%plagInput%nPclsBuffTot
112 pplag => region%levels(ilev)%plag
119 prhssum => pplag%rhsSum
121 paivold => pplag%aivOld
122 parvold => pplag%arvOld
123 pcvold => pplag%cvOld
129 ppatch => region%levels(ilev)%patches(ipatch)
130 bctype = ppatch%bcType
134 lbound = ppatch%lbound
142 IF ((bctype>=bc_regionconf .AND. bctype<=bc_regionconf+bc_range) .OR. &
143 (bctype>=bc_tra_peri .AND. bctype<=bc_tra_peri +bc_range) .OR. &
144 (bctype>=bc_rot_peri .AND. bctype<=bc_rot_peri +bc_range))
THEN
146 pbuffplag => ppatch%bufferPlag
147 paivbuff => pbuffplag%aiv
148 parvbuff => pbuffplag%arv
149 pcvbuff => pbuffplag%cv
150 pdvbuff => pbuffplag%dv
151 ptvbuff => pbuffplag%tv
152 prhsbuff => pbuffplag%rhs
153 prhssumbuff => pbuffplag%rhsSum
155 paivoldbuff => pbuffplag%aivOld
156 parvoldbuff => pbuffplag%arvOld
157 pcvoldbuff => pbuffplag%cvOld
165 nbuffsizedes = pbuffplag%nBuffSizeDes
167 IF ( nbuffsizedes /= 0 )
THEN
172 npclsend = npclsstart + (nbuffsizedes-1)
175 WRITE(stdout,
'(A,I2,3I6)') &
176 ' PLAG_AppendDataFromBuffers-iReg: nBuffSizeDes,nPclsStart,nPclsEnd',&
177 ireg, nbuffsizedes,npclsstart,npclsend
181 DO ipcls = npclsstart, npclsend
183 ibuff = ipcls-npclsstart+1
185 paiv(:,ipcls) = paivbuff(:,ibuff)
186 parv(:,ipcls) = parvbuff(:,ibuff)
187 pcv(:,ipcls) = pcvbuff( :,ibuff)
188 pdv(:,ipcls) = pdvbuff( :,ibuff)
189 ptv(:,ipcls) = ptvbuff( :,ibuff)
190 prhs(:,ipcls) = prhsbuff(:,ibuff)
191 prhssum(:,ipcls) = prhssumbuff(:,ibuff)
193 paivold(:,ipcls) = paivoldbuff(:,ibuff)
194 parvold(:,ipcls) = parvoldbuff(:,ibuff)
195 pcvold(:,ipcls) = pcvoldbuff( :,ibuff)
201 npcls = npcls+nbuffsizedes
202 region%levels(ilev)%plag%nPcls = npcls
211 IF( npclsprev /= pplag%nPcls ) &
212 WRITE(stdout,
'(A,I4,2I8)') &
213 ' PLAG_AppendDataFromBuffers-iReg: nPclsPrev,nPclsCurr',&
214 ireg,npclsprev,pplag%nPcls
**********************************************************************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 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
subroutine plag_appenddatafrombuffers(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 idir
**********************************************************************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
**********************************************************************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)