gridripper::amr1d::regridder::DefaultRegridder Class Reference

Default regridder. More...

Inheritance diagram for gridripper::amr1d::regridder::DefaultRegridder:

gridripper::amr1d::Regridder gridripper::amr1d::regridder::OutRegridder

List of all members.

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.


Detailed Description

Default regridder.

Version:
0.5, 12/22/2006
Since:
GridRipper 0.3, 02/22/2005
Author:
Peter Csizmadia

Member Function Documentation

boolean gridripper::amr1d::regridder::DefaultRegridder::isFlagged ( int  i  )  [inline]

Is the specified grid point flagged?

Returns:
true if flagged, false otherwise

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.

Returns:
true if it is dynamic, false otherwise
See also:
setFlagged(int, boolean)

setLastRegridTime(int)

Reimplemented from gridripper::amr1d::Regridder.

void gridripper::amr1d::regridder::DefaultRegridder::setFlagged ( int  i,
boolean  v 
) [inline]

Sets flag on a grid point.

Parameters:
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.

Returns:
true if there are such flagged points, false otherwise

Implements gridripper::amr1d::Regridder.

final void gridripper::amr1d::regridder::DefaultRegridder::init ( int  maxi  )  [inline]

Initialization.

Parameters:
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.

Parameters:
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.

Parameters:
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
Returns:
the list of intervals to refine

Implements gridripper::amr1d::Regridder.

Reimplemented in gridripper::amr1d::regridder::OutRegridder.


Member Data Documentation

Points are flagged by setting the appropriate array element to true.


The documentation for this class was generated from the following file:

Generated on Wed Jun 17 18:47:28 2009 for GridRipper by  doxygen 1.5.6