2D AMRCLAW
Functions/Subroutines
projec2.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine projec2 (level, numpro, rectflags, ilo, ihi, jlo, jhi, mbuff)
 This subroutine projects all level level+1 and level+2 grids to a level level grid and flag the cells being projected as needing refine. More...
 

Function/Subroutine Documentation

subroutine projec2 (   level,
  numpro,
dimension(ilo-mbuff:ihi+mbuff,jlo-mbuff:jhi+mbuff)  rectflags,
  ilo,
  ihi,
  jlo,
  jhi,
  mbuff 
)

This subroutine projects all level level+1 and level+2 grids to a level level grid and flag the cells being projected as needing refine.

In other words, the subroutine modify the flag array of the input grid if part of it is under any grid that is one or two levels finer.

However, note that these cells are flagged with badpro parameter defined in amr_module (not badpt as in flagregions() and flag2refine2()).

input:

  • level
  • flag array of the input grid (rectflags)

output:

  • numpro
  • flag array of the input grid (rectflags)
Parameters
levelAMR level of the grid which all fine subgrids are projected onto
numpronumber of additional flagged cells at level level (initialized to 0 in flglvl)
rectflagsarray to be flagged
iloglobal i index of the left border of the grid being projected to (being flagged)
ihiglobal i index of the right border of the grid being projected to (being flagged)
jloglobal j index of the lower border of the grid being projected to (being flagged)
jhiglobal i index of the upper border of the grid being projected to (being flagged)
mbuffwidth of the buffer zone

Definition at line 41 of file projec2.f.

References setindices().

Referenced by bufnst2().

Here is the call graph for this function:

Here is the caller graph for this function: