Public Member Functions | |
Regridder | newRegridder (Grid p) |
Regridder | cloneRegridder () |
boolean | isFlagged (int i) |
Is the specified grid point flagged? | |
boolean | isDynamic () |
Tests whether mesh refinement is dynamic. | |
void | setFlagged (int i, boolean v) |
Sets flag on a grid point. | |
int | getInvFreqUnit () |
boolean | isErrorEstimated () |
void | setLastRegridTime (int t) |
int | getLastRegridTime () |
boolean | checkRegriddingIsDue (Grid g, int maxAllowedLevel, boolean onInitialHypersurface, int r, int ir, int errorCheckFreq, int regridFreq) |
final void | init (int maxi) |
Initialization. | |
final void | checkErrors (Integrator integrator, double critical) |
Flag the points where the error is larger than critical. | |
IntervalList | getIntervalList (Grid grid, Grid[] newSubSubgrids, int minl, int maxl, int numvel, int margin, int bufzoneradius, int tsc) |
Generates a list of new subgrids from the flagged points. | |
void | beginTimeStep (Grid baseg) |
Called before each time step. | |
void | endTimeStep (double t) |
Called after each time step. | |
Protected Member Functions | |
DefaultRegridder (Grid p) | |
DefaultRegridder (DefaultRegridder r) | |
boolean | hasUncoveredFlaggedPoint (Grid grid, Grid[] subGrids, int margin) |
Checks if there exists any flagged point which is not covered by a refined subgrid. | |
Protected Attributes | |
boolean[] | pointFlags = null |
Points are flagged by setting the appropriate array element to true. |
boolean gridripper::amr1d::regridder::DefaultRegridder::isFlagged | ( | int | i | ) | [inline] |
Is the specified grid point flagged?
Reimplemented from gridripper::amr1d::Regridder.
boolean gridripper::amr1d::regridder::DefaultRegridder::isDynamic | ( | ) | [inline] |
Tests whether mesh refinement is dynamic.
Points can only be flagged in case of dynamic refinement.
true
if it is dynamic, false
otherwise setLastRegridTime(int)
Reimplemented from gridripper::amr1d::Regridder.
void gridripper::amr1d::regridder::DefaultRegridder::setFlagged | ( | int | i, | |
boolean | v | |||
) | [inline] |
Sets flag on a grid point.
i | point index | |
v | true to flag, false to unflag it |
Reimplemented from gridripper::amr1d::Regridder.
boolean gridripper::amr1d::regridder::DefaultRegridder::hasUncoveredFlaggedPoint | ( | Grid | grid, | |
Grid[] | subGrids, | |||
int | margin | |||
) | [inline, protected, virtual] |
Checks if there exists any flagged point which is not covered by a refined subgrid.
Implements gridripper::amr1d::Regridder.
final void gridripper::amr1d::regridder::DefaultRegridder::init | ( | int | maxi | ) | [inline] |
Initialization.
maxi | grid maximum index |
Reimplemented from gridripper::amr1d::Regridder.
final void gridripper::amr1d::regridder::DefaultRegridder::checkErrors | ( | Integrator | integrator, | |
double | critical | |||
) | [inline] |
Flag the points where the error is larger than critical.
integrator | the grid integrator | |
critical | the critical error value |
Reimplemented from gridripper::amr1d::Regridder.
IntervalList gridripper::amr1d::regridder::DefaultRegridder::getIntervalList | ( | Grid | grid, | |
Grid[] | newSubSubgrids, | |||
int | minl, | |||
int | maxl, | |||
int | numvel, | |||
int | margin, | |||
int | bufzoneradius, | |||
int | tsc | |||
) | [inline, virtual] |
Generates a list of new subgrids from the flagged points.
grid | the grid | |
newSubSubgrids | ||
minl | the minimum level to regrid, larger than or equal to zero and smaller than Integer.MAX_VALUE if the grids are regenerated, Integer.MAX_VALUE at the first generation | |
maxl | the maximum allowed refinement level | |
numvel | the error propagation velocity | |
margin | margin for new grids | |
bufzoneradius | size of the buffer zone | |
tsc | time step count |
Implements gridripper::amr1d::Regridder.
Reimplemented in gridripper::amr1d::regridder::OutRegridder.
boolean [] gridripper::amr1d::regridder::DefaultRegridder::pointFlags = null [protected] |
Points are flagged by setting the appropriate array element to true.