Panzer
Version of the Day
|
Mix-in interface to support cell "domains" in panzer. More...
#include <Panzer_Evaluator_DomainInterface.hpp>
Public Types | |
enum | DomainType : int { OWNED =0, GHOST =1, REAL =2, VIRTUAL =3, ALL =4 } |
Domain types supported by worksets. More... | |
Public Member Functions | |
DomainEvaluator (DomainType domain=ALL) | |
Constructor. More... | |
virtual | ~DomainEvaluator ()=default |
Default destructor. More... | |
void | setDomain (const DomainType domain) |
Set the domain for the evaluator. More... | |
DomainType | getDomain () |
Get the domain for the evaluator. More... | |
virtual int | cellStartIndex (const panzer::Workset &workset) const |
Returns the starting cell for the specified domain for a given workset. More... | |
virtual int | cellEndIndex (const panzer::Workset &workset) const |
Returns the non-inclusive end cell for the specified domain for a given workset. More... | |
Private Attributes | |
DomainType | domain_ |
Domain for this evaluator. More... | |
Mix-in interface to support cell "domains" in panzer.
This class adds support for cell domains into evaluators. This is commonly used in DG discretizations.
Definition at line 12 of file Panzer_Evaluator_DomainInterface.hpp.
enum panzer::DomainEvaluator::DomainType : int |
Domain types supported by worksets.
Definition at line 17 of file Panzer_Evaluator_DomainInterface.hpp.
panzer::DomainEvaluator::DomainEvaluator | ( | DomainEvaluator::DomainType | domain = ALL | ) |
Constructor.
[in] | domain | (optional) Cell domain to iterate over (defaults to ALL) |
Definition at line 7 of file Panzer_Evaluator_DomainInterface.cpp.
|
virtualdefault |
Default destructor.
void panzer::DomainEvaluator::setDomain | ( | const DomainType | domain | ) |
Set the domain for the evaluator.
[in] | domain | Domain to set |
Definition at line 12 of file Panzer_Evaluator_DomainInterface.cpp.
DomainEvaluator::DomainType panzer::DomainEvaluator::getDomain | ( | ) |
Get the domain for the evaluator.
Definition at line 9 of file Panzer_Evaluator_DomainInterface.cpp.
|
virtual |
Returns the starting cell for the specified domain for a given workset.
Note: the loop would look like:
for(int cell = cell_start_index(workset); cell < cell_end_index(workset); ++cell){do something...}
[in] | workset | Workset describing data layout |
Definition at line 15 of file Panzer_Evaluator_DomainInterface.cpp.
|
virtual |
Returns the non-inclusive end cell for the specified domain for a given workset.
Note: the loop would look like:
for(int cell = cell_start_index(workset); cell < cell_end_index(workset); ++cell){do something...}
[in] | workset | Workset describing data layout |
Definition at line 32 of file Panzer_Evaluator_DomainInterface.cpp.
|
private |
Domain for this evaluator.
Definition at line 79 of file Panzer_Evaluator_DomainInterface.hpp.