2D AMRCLAW
Functions/Subroutines
setPhysBndryFlags.f File Reference

Go to the source code of this file.

Functions/Subroutines

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 physical domain). More...
 

Function/Subroutine Documentation

subroutine setphysbndryflags ( integer*1, dimension(ilo-mbuff:ihi+mbuff, jlo-mbuff:jhi+mbuff)  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 physical domain).

That way when shrink by 1 to get proper nested domain, you wont lose the first border cell of a grid

flag array uses 0-based index space

if periodic, then have to look elsewhere to see if last interior row/col that is flagged is ok. this is done in the calling routine that transfers flagged points to base grids

Parameters
iflagsarray that stores the flags for this grid
iloglobal i index of left border of the grid
ihiglobal i index of right border of the grid
jloglobal j index of lower border of the grid
jhiglobal j index of upper border of the grid
mbuffwidth of buffer zone
levelAMR level of the grid being flagged

Definition at line 28 of file setPhysBndryFlags.f.

Referenced by griddomshrink(), and setdomflags().

Here is the caller graph for this function: