Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_Evaluator_DomainInterface.hpp
Go to the documentation of this file.
1#ifndef PANZER_EVALUATOR_DOMAIN_INTERFACE_HPP
2#define PANZER_EVALUATOR_DOMAIN_INTERFACE_HPP
3
4namespace panzer {
5
6 class Workset;
7
13
14 public:
15
17 enum DomainType : int {
20 REAL=2,
23 ALL=5
24 };
25
32
36 virtual ~DomainEvaluator() = default;
37
43 void setDomain(const DomainType domain);
44
50
62 virtual int cellStartIndex(const panzer::Workset & workset) const;
63
75 virtual int cellEndIndex(const panzer::Workset & workset) const;
76
77 private:
78
81
82 };
83
84}
85
86#endif
Mix-in interface to support cell "domains" in panzer.
virtual ~DomainEvaluator()=default
Default destructor.
DomainType domain_
Domain for this evaluator.
void setDomain(const DomainType domain)
Set the domain for the evaluator.
DomainType
Domain types supported by worksets.
@ ALL
All ghost and virtual cells for the workset on the MPI process.
@ REAL
All Ghosted cells for the workset on the MPI process.
@ EXTERNAL
All virtual cells for the workset on the MPI process.
@ VIRTUAL
All Owned and Ghosted cells for the workset on the MPI process.
@ GHOST
All Owned cells for the workset on the MPI process.
DomainEvaluator(DomainType domain=ALL)
Constructor.
virtual int cellStartIndex(const panzer::Workset &workset) const
Returns the starting cell for the specified domain for a given workset.
DomainType getDomain()
Get the domain for the evaluator.
virtual int cellEndIndex(const panzer::Workset &workset) const
Returns the non-inclusive end cell for the specified domain for a given workset.