2D AMRCLAW
|
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+2 grids to a level level grid and flag the cells being projected as needing refine. More... | |
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+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 two levels finer.
This subroutine is to insure proper level nesting. For example, you just create new level 5 grids. Now you need to ensure that the new level 4 grids encompass the new level 5 grids. To do this, we project level 5 grids to level 3 grids, which means that all locations in level 3 where level 5 exists are flagged. In this example, level 3 is the level parameter on the arguments list of this subroutine. So this subroutine is actually used to ensure level+1 grids can encompasses level+2 grids.
However, note that these cells are flagged with badpro parameter defined in amr_module (not badpt as in flagregions() and flag2refine2()).
input:
output:
level | AMR level of the grid which all fine subgrids are projected onto |
numpro | number of additional flagged cells at level level (initialized to 0 in flglvl) |
rectflags | array to be flagged |
ilo | global i index of the left border of the grid being projected to (being flagged) |
ihi | global i index of the right border of the grid being projected to (being flagged) |
jlo | global j index of the lower border of the grid being projected to (being flagged) |
jhi | global i index of the upper border of the grid being projected to (being flagged) |
mbuff | width of the buffer zone |
Definition at line 52 of file projec2.f.
References amr_module::badpro, amr_module::goodpt, amr_module::ibuff, amr_module::intratx, amr_module::intraty, amr_module::iregsz, amr_module::jregsz, amr_module::levelptr, amr_module::ndihi, amr_module::ndilo, amr_module::ndjhi, amr_module::ndjlo, amr_module::newstl, amr_module::node, amr_module::outunit, amr_module::pprint, setindices(), amr_module::spheredom, amr_module::xperdom, and amr_module::yperdom.
Referenced by bufnst2().