2D AMRCLAW
|
Go to the source code of this file.
Functions/Subroutines | |
logical function | nestck2 (mnew, lbase, badpts, npts, numptc, icl, nclust, nvar, naux) |
Check that the potential grid mnew is completely contained in the (coarser) finest grid which stays fixed, at level lbase. More... | |
logical function nestck2 | ( | mnew, | |
lbase, | |||
dimension(2,npts) | badpts, | ||
npts, | |||
integer, dimension(maxcl) | numptc, | ||
icl, | |||
nclust, | |||
nvar, | |||
naux | |||
) |
Check that the potential grid mnew is completely contained in the (coarser) finest grid which stays fixed, at level lbase.
projec algo. Will guarantee containment in all finer grids twixt them.
If grid not contained in some coarse grid, then bisect in long direction and add the two new grids to the cluster (grid) list and return false. EVENTUALLY this has to work, since flagged pts were checked for proper nesting.
For grid mnew (on level lev), check if it's properly nested in
If grid mnew is properly nested, return true.
Need to check base level grids since they are fixed during currign regridding.
TODO: check these
Need to check lev-2 grids since the lev-1 grids to be generated at next step is in the range of level lev-2 grids. If level lev-2 grids do not properly contain mnew, there is no way the lev-1 grids to be generated at next step can contain grid mnew. Grid mnew will be projected to level lev-2 grids so level lev-1 grids are guaranteed to contain grid mnew after they are re-generated.
Definition at line 39 of file nestck2.f.
References amr_module::cornxhi, amr_module::cornxlo, amr_module::cornyhi, amr_module::cornylo, amr_module::ibuff, amr_module::intratx, amr_module::intraty, amr_module::maxcl, amr_module::mstart, amr_module::ndihi, amr_module::ndilo, amr_module::ndjhi, amr_module::ndjlo, amr_module::nestlevel, amr_module::nghost, amr_module::node, amr_module::nprint, outmsh(), outtre(), amr_module::outunit, and amr_module::rnode.