22 class RefinementControl;
23 class RefinementControlService;
99 typedef std::list< std::pair<peano4::grid::GridControlEvent,int> >
NewEvents;
std::string toString(exahype2::RefinementCommand value)
exahype2::RefinementCommand operator&&(exahype2::RefinementCommand lhs, exahype2::RefinementCommand rhs)
If one of the flags says refine, then refine.
Manage refine/erase requests within ExaHyPE 2.
NewEvents _newEvents
Container to accumulate new events.
void clear()
Clears the new events.
static tarch::logging::Log _log
RefinementControl(double tolerance=0.01)
void addCommand(const tarch::la::Vector< Dimensions, double > &x, const tarch::la::Vector< Dimensions, double > &h, exahype2::RefinementCommand command, int lifetime)
Add a new command.
const double _Tolerance
We blow up the region around refinement criterion slightly.
static tarch::multicore::BooleanSemaphore _semaphore
std::list< std::pair< peano4::grid::GridControlEvent, int > > NewEvents
std::string toString() const
virtual ~RefinementControl()
For the generic kernels that I use here most of the time.
RefinementCommand getDefaultRefinementCommand()
The default is coarsen as this is the lowest priority command.