Go to the source code of this file.
|
subroutine | setphysbndry (rectflags, ilo, ihi, jlo, jhi, mbuff, level) |
|
◆ setphysbndry()
subroutine setphysbndry |
( |
dimension(ilo-mbuff:ihi+mbuff, jlo-mbuff:jhi+mbuff) |
rectflags, |
|
|
|
ilo, |
|
|
|
ihi, |
|
|
|
jlo, |
|
|
|
jhi, |
|
|
|
mbuff, |
|
|
|
level |
|
) |
| |
If grid borders the physical domain then turn off any flagged points in buffer zone = those points are not properly nested (and it doesnt matter). But last row/col interior to grid if flagged is ok
if periodic, then have to look elsewhere to see if last interior row/col that is flagged is ok. (done in rest of colate2)
Definition at line 5 of file setPhysBndry.f.
References amr_module::goodpt, amr_module::iregsz, amr_module::jregsz, amr_module::xperdom, and amr_module::yperdom.
7 implicit double precision (a-h, o-z)
9 dimension rectflags(ilo-mbuff:ihi+mbuff, jlo-mbuff:jhi+mbuff)
11 c ****************************************************************
20 c ****************************************************************
22 if (ilo .eq. 0 .and. .not.
xperdom)
then 23 c set left flagged points to be ok
24 do j = jlo-mbuff, jhi+mbuff
25 do i = ilo-mbuff, ilo-1
28 c 1st interior cell ok
if on bndry. set back to pos
if flagged
29 rectflags(0,j) = abs(rectflags(0,j))
34 c set right flagged points to be ok
35 do j = jlo-mbuff, jhi+mbuff
36 do i = ihi+1, ihi+mbuff
39 rectflags(ihi,j) = abs(rectflags(ihi,j))
44 if (jlo .eq. 0 .and. .not.
yperdom)
then 45 c set bottom flagged points to be ok
46 do i = ilo-mbuff, ihi+mbuff
47 do j = jlo-mbuff, jlo-1
50 rectflags(i,0) = abs(rectflags(i,0))
55 c set top flagged points to be ok
56 do i = ilo-mbuff, ihi+mbuff
57 do j = jhi+1, jhi+mbuff
60 rectflags(i,jhi) = abs(rectflags(i,jhi))
integer, dimension(maxlv) iregsz
integer, dimension(maxlv) jregsz
real(kind=8), parameter goodpt
The module contains the definition of a "node descriptor" as well as other global variables used duri...