60 TYPE(t_region
),
POINTER :: regions(:)
62 INTEGER,
INTENT(IN) :: ireg
65 INTEGER ::
icorner, iedge, ilev, ijk
68 CHARACTER(CHRLEN) :: rcsidentstring
70 INTEGER :: errorflag, ngridlevels
72 TYPE(t_region
),
POINTER :: pregion
73 TYPE(t_level
),
POINTER :: plevel
74 TYPE(t_buffer_plag),
POINTER :: pcorncellsxbuff, pedgecellsxbuff
75 TYPE(t_plag),
POINTER :: pplag
80 rcsidentstring =
'$RCSfile: PLAG_CECellsDeallocateData.F90,v $ $Revision: 1.3 $'
82 global => regions(ireg)%global
85 'PLAG_CECellsDeallocateData.F90' )
87 IF ( global%myProcid == masterproc .AND. &
88 global%verbLevel > verbose_none )
THEN
89 WRITE(stdout,
'(A,3X,A)') solver_name, &
90 'Deallocating Corner-Edge Cells Data Buffers for PLAG...'
95 pregion => regions(ireg)
99 ngridlevels = pregion%nGridLevels
103 DO ilev=1,ngridlevels
107 plevel => pregion%levels(ilev)
108 pplag => regions(ireg)%levels(ilev)%plag
116 IF( .NOT. plevel%cornerCells(
icorner)%interact ) goto 1999
120 IF( plevel%cornerCells(
icorner)%degenrt /= degenerat_none ) goto 1999
124 DO ijk=1,ubound(plevel%cornerCells(
icorner)%cells,1)
125 pcorncellsxbuff => plevel%cornerCells(
icorner)%cells(ijk)%bufferExchPlag
129 DEALLOCATE( pcorncellsxbuff%aiv,stat=errorflag )
130 global%error = errorflag
131 IF (global%error /= err_none)
THEN
132 CALL
errorstop( global, err_deallocate,__line__,
'pCornCellsXBuff%aiv' )
135 DEALLOCATE( pcorncellsxbuff%arv,stat=errorflag )
136 global%error = errorflag
137 IF (global%error /= err_none)
THEN
138 CALL
errorstop( global, err_deallocate,__line__,
'pCornCellsXBuff%arv' )
141 DEALLOCATE( pcorncellsxbuff%cv,stat=errorflag )
142 global%error = errorflag
143 IF (global%error /= err_none)
THEN
144 CALL
errorstop( global, err_deallocate,__line__,
'pCornCellsXBuff%cv' )
147 DEALLOCATE( pcorncellsxbuff%dv,stat=errorflag )
148 global%error = errorflag
149 IF (global%error /= err_none)
THEN
150 CALL
errorstop( global, err_deallocate,__line__,
'pCornCellsXBuff%dv' )
153 DEALLOCATE( pcorncellsxbuff%tv,stat=errorflag )
154 global%error = errorflag
155 IF (global%error /= err_none)
THEN
156 CALL
errorstop( global, err_deallocate,__line__,
'pCornCellsXBuff%tv' )
159 DEALLOCATE( pcorncellsxbuff%aivOld,stat=errorflag )
160 global%error = errorflag
161 IF (global%error /= err_none)
THEN
162 CALL
errorstop( global, err_deallocate,__line__,
'pCornCellsXBuff%aivOld' )
165 DEALLOCATE( pcorncellsxbuff%arvOld,stat=errorflag )
166 global%error = errorflag
167 IF (global%error /= err_none)
THEN
168 CALL
errorstop( global, err_deallocate,__line__,
'pCornCellsXBuff%arvOld' )
171 DEALLOCATE( pcorncellsxbuff%cvOld,stat=errorflag )
172 global%error = errorflag
173 IF (global%error /= err_none)
THEN
174 CALL
errorstop( global, err_deallocate,__line__,
'pCornCellsXBuff%cvOld' )
177 DEALLOCATE( pcorncellsxbuff%rhs,stat=errorflag )
178 global%error = errorflag
179 IF (global%error /= err_none)
THEN
180 CALL
errorstop( global, err_deallocate,__line__,
'pCornCellsXBuff%rhs' )
183 DEALLOCATE( pcorncellsxbuff%rhsSum,stat=errorflag )
184 global%error = errorflag
185 IF (global%error /= err_none)
THEN
186 CALL
errorstop( global, err_deallocate,__line__,
'pCornCellsXBuff%rhsSum' )
200 IF( .NOT. plevel%edgeCells(iedge)%interact ) goto 2999
204 IF( plevel%edgeCells(iedge)%degenrt /= degenerat_none ) goto 2999
208 DO ijk=1,ubound(plevel%edgeCells(iedge)%cells,1)
209 pedgecellsxbuff => plevel%edgeCells(iedge)%cells(ijk)%bufferExchPlag
213 DEALLOCATE( pedgecellsxbuff%aiv,stat=errorflag )
214 global%error = errorflag
215 IF (global%error /= err_none)
THEN
216 CALL
errorstop( global, err_deallocate,__line__,
'pEdgeCellsXBuff%aiv' )
219 DEALLOCATE( pedgecellsxbuff%arv,stat=errorflag )
220 global%error = errorflag
221 IF (global%error /= err_none)
THEN
222 CALL
errorstop( global, err_deallocate,__line__,
'pEdgeCellsXBuff%arv' )
225 DEALLOCATE( pedgecellsxbuff%cv,stat=errorflag )
226 global%error = errorflag
227 IF (global%error /= err_none)
THEN
228 CALL
errorstop( global, err_deallocate,__line__,
'pEdgeCellsXBuff%cv' )
231 DEALLOCATE( pedgecellsxbuff%dv,stat=errorflag )
232 global%error = errorflag
233 IF (global%error /= err_none)
THEN
234 CALL
errorstop( global, err_deallocate,__line__,
'pEdgeCellsXBuff%dv' )
237 DEALLOCATE( pedgecellsxbuff%tv,stat=errorflag )
238 global%error = errorflag
239 IF (global%error /= err_none)
THEN
240 CALL
errorstop( global, err_deallocate,__line__,
'pEdgeCellsXBuff%tv' )
243 DEALLOCATE( pedgecellsxbuff%aivOld,stat=errorflag )
244 global%error = errorflag
245 IF (global%error /= err_none)
THEN
246 CALL
errorstop( global, err_deallocate,__line__,
'pEdgeCellsXBuff%aivOld' )
249 DEALLOCATE( pedgecellsxbuff%arvOld,stat=errorflag )
250 global%error = errorflag
251 IF (global%error /= err_none)
THEN
252 CALL
errorstop( global, err_deallocate,__line__,
'pEdgeCellsXBuff%arvOld' )
255 DEALLOCATE( pedgecellsxbuff%cvOld,stat=errorflag )
256 global%error = errorflag
257 IF (global%error /= err_none)
THEN
258 CALL
errorstop( global, err_deallocate,__line__,
'pEdgeCellsXBuff%cvOld' )
261 DEALLOCATE( pedgecellsxbuff%rhs,stat=errorflag )
262 global%error = errorflag
263 IF (global%error /= err_none)
THEN
264 CALL
errorstop( global, err_deallocate,__line__,
'pEdgeCellsXBuff%rhs' )
267 DEALLOCATE( pedgecellsxbuff%rhsSum,stat=errorflag )
268 global%error = errorflag
269 IF (global%error /= err_none)
THEN
270 CALL
errorstop( global, err_deallocate,__line__,
'pEdgeCellsXBuff%rhsSum' )
subroutine registerfunction(global, funName, fileName)
subroutine plag_cecellsdeallocatedata(regions, 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 icorner
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)