2D AMRCLAW
flagcheck.f
Go to the documentation of this file.
1 c
2 c ----------------------------------------------------------------------------
3 c
4  subroutine flagcheck(rectflags,ilo,ihi,jlo,jhi,mbuff,iflags,
5  . imin,imax,jmin,jmax,mptr)
6 
7  use amr_module
8  implicit double precision (a-h, o-z)
9 
10  dimension rectflags(ilo-mbuff:ihi+mbuff,jlo-mbuff:jhi+mbuff)
11  integer*1 iflags(ilo-mbuff:ihi+mbuff,jlo-mbuff:jhi+mbuff)
12 c
13 c should really only check interior border cells here
14 c
15  level = node(nestlevel,mptr)
16 c
17 c want to check all cells for flagging, including buffer
18 c but wrap if periodic when put on list
19 c if not periodic no need to check if outside domain
20 c
21 
22  do 10 j = jmin, jmax
23  do 10 i = imin, imax
24  if (rectflags(i,j) .eq. goodpt) go to 10
25  if (iflags(i,j) .ne. 1) then !point not nested. turn off
26  rectflags(i,j) = 0.
27  if (nprint) then
28  write(outunit,100) i,j,mptr
29  100 format("turning off point ",2i5," from grid ",i5)
30  endif
31  endif
32  10 continue
33 
34  return
35  end
subroutine flagcheck(rectflags, ilo, ihi, jlo, jhi, mbuff, iflags, imin, imax, jmin, jmax, mptr)
Definition: flagcheck.f:4