Abstract class for derefinment strategies. More...
#include <RemovalStrategy.hpp>
Public Member Functions | |
virtual vector< int > | CellsToRemove (Tessellation const &tess, vector< ComputationalCell > const &cells, double time) const =0 |
Removal abstract class. Can't remove neighboring cells or cells near peiodic boundary. Use CheckOutput to check correctness. More... | |
void | CheckOutput (Tessellation const &tess, vector< int > &ToRemove) const |
Checks if the removed list is good, throws an error if not. More... | |
vector< int > | RemoveNeighbors (vector< double > const &merits, vector< int > const &candidates, Tessellation const &tess) const |
Removes neighboring points and cells near the boundary which are not rigid walls. More... | |
vector< int > | RemoveNearBoundary (vector< int > const &ToRemove, Tessellation const &tess) const |
Removed from the list cells near periodic boundaries. More... | |
virtual | ~RemovalStrategy (void) |
Virtual destructor. | |
Abstract class for derefinment strategies.
Definition at line 17 of file RemovalStrategy.hpp.
|
pure virtual |
Removal abstract class. Can't remove neighboring cells or cells near peiodic boundary. Use CheckOutput to check correctness.
tess | The tessellation |
cells | The hydro primitives |
time | The sim time |
Implemented in NohRemove.
void RemovalStrategy::CheckOutput | ( | Tessellation const & | tess, |
vector< int > & | ToRemove | ||
) | const |
Checks if the removed list is good, throws an error if not.
tess | The tessellation |
ToRemove | The list of points to remove |
Definition at line 81 of file RemovalStrategy.cpp.
vector< int > RemovalStrategy::RemoveNearBoundary | ( | vector< int > const & | ToRemove, |
Tessellation const & | tess | ||
) | const |
Removed from the list cells near periodic boundaries.
ToRemove | List of candidates |
tess | The tessellation |
Definition at line 4 of file RemovalStrategy.cpp.
vector< int > RemovalStrategy::RemoveNeighbors | ( | vector< double > const & | merits, |
vector< int > const & | candidates, | ||
Tessellation const & | tess | ||
) | const |
Removes neighboring points and cells near the boundary which are not rigid walls.
merits | The vector of merits that decides which one of the neighbors to keep (the one with the higher merit) |
candidates | The list of points to remove, assumed to be sorted |
tess | The tessellation |
Definition at line 31 of file RemovalStrategy.cpp.