8 implicit double precision (a-h, o-z)
11 integer*1 iflags (ilo-mbuff:ihi+mbuff,jlo-mbuff:jhi+mbuff)
12 integer*1 iflags2(ilo-mbuff:ihi+mbuff,jlo-mbuff:jhi+mbuff)
26 write(outunit,*)
" from griddomshrink: on entry, iflags2"
27 do 10 j = jhi+mbuff,jlo-mbuff,-1
28 write(outunit,100)(iflags2(i,j),i=ilo-mbuff,ihi+mbuff)
35 do 40 j = jlo-mbuff+1,jhi+mbuff-1
36 do 40 i = ilo-mbuff+1,ihi+mbuff-1
37 iflags(i,j) = iflags2(i,j)
38 if (iflags2(i ,j ) .le. 0 .or.
39 1 iflags2(i+1,j ) .le. 0 .or. iflags2(i-1,j ) .le. 0 .or.
40 2 iflags2(i+1,j+1) .le. 0 .or. iflags2(i-1,j+1) .le. 0 .or.
41 3 iflags2(i ,j-1) .le. 0 .or. iflags2(i ,j+1) .le. 0 .or.
42 4 iflags2(i+1,j-1) .le. 0 .or. iflags2(i-1,j-1) .le. 0)
then
45 iflags(ilo-mbuff,j) = 0
46 iflags(ihi+mbuff,j) = 0
48 do i = ilo-mbuff,ihi+mbuff
49 iflags(i,jlo-mbuff) = 0
50 iflags(i,jhi+mbuff) = 0
63 write(outunit,*)
" from griddomshrink: on exit, iflags"
64 do 70 j = jhi+mbuff-1, jlo-mbuff+1, -1
65 write(outunit,101)(iflags(i,j),i=ilo-mbuff+1,ihi+mbuff-1)
subroutine setphysbndryflags(iflags, ilo, ihi, jlo, jhi, mbuff, level)
If grid borders the physical domain then set domain flags to 1 in buffer zone (which is outside the p...
subroutine griddomshrink(iflags2, ilo, ihi, jlo, jhi, mbuff, iflags, level)