2D AMRCLAW
|
Go to the source code of this file.
Functions/Subroutines | |
subroutine | flagregions2 (mx, my, mbuff, xlower, ylower, dx, dy, level, t, amrflags, DONTFLAG, DOFLAG) |
Modify array of flagged points to respect minlevels and maxlevels specified by regions. More... | |
subroutine flagregions2 | ( | integer, intent(in) | mx, |
integer, intent(in) | my, | ||
integer, intent(in) | mbuff, | ||
real(kind=8), intent(in) | xlower, | ||
real(kind=8), intent(in) | ylower, | ||
real(kind=8), intent(in) | dx, | ||
real(kind=8), intent(in) | dy, | ||
integer, intent(in) | level, | ||
real(kind=8), intent(in) | t, | ||
real(kind=8), dimension(1-mbuff:mx+mbuff,1-mbuff:my+mbuff), intent(inout) | amrflags, | ||
real(kind=8), intent(in) | DONTFLAG, | ||
real(kind=8), intent(in) | DOFLAG | ||
) |
Modify array of flagged points to respect minlevels and maxlevels specified by regions.
This subroutine processes ONE grid associated with this amrflags
Second version with outer loop on regions, should be faster.
On input, amrflags is already set by flagger routine using Richardson extrapolation and/or flag2refine routine, as requested. This routine may change flags only in cells that are (partially) covered by one or more regions.
If any part of a grid cell is covered by one or more regions, then refinement is required to at least the max of all region min_levels and is allowed to at most to the max of all region max_levels.
Note that buffering is done after this, so additional cells may be refined in areas covered by regions that do not allow it!
Definition at line 42 of file flagregions2.f90.
References regions_module::num_regions, and regions_module::regions.
Referenced by bufnst2().