Panzer
Version of the Day
|
#include <Panzer_Sum.hpp>
Classes | |
struct | NoScalarsTag |
struct | ScalarsTag |
Public Member Functions | |
SumStatic (const Teuchos::ParameterList &p) | |
SumStatic (const std::vector< PHX::Tag< typename EvalT::ScalarT >> &inputs, const std::vector< double > &scalar_values, const PHX::Tag< typename EvalT::ScalarT > &output) | |
Tag only Constructor. More... | |
void | postRegistrationSetup (typename TRAITS::SetupData d, PHX::FieldManager< TRAITS > &fm) |
void | evaluateFields (typename TRAITS::EvalData d) |
KOKKOS_INLINE_FUNCTION void | operator() (const ScalarsTag, const unsigned c) const |
KOKKOS_INLINE_FUNCTION void | operator() (const NoScalarsTag, const unsigned c) const |
Public Member Functions inherited from panzer::EvaluatorWithBaseImpl< TRAITS > | |
void | setDetailsIndex (const int di) |
An evaluator builder sets the details index. More... | |
Public Member Functions inherited from panzer::DomainEvaluator | |
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 Types | |
enum | { MAX_VALUES =20 } |
typedef EvalT::ScalarT | ScalarT |
Private Attributes | |
PHX::MDField< ScalarT, Tag0, Tag1 > | sum |
std::vector< PHX::MDField < const ScalarT, Tag0, Tag1 > > | values |
bool | useScalars |
PHX::MDField< const ScalarT, Tag0, Tag1 > | current_value |
Kokkos::View< const ScalarT **, typename PHX::DevLayout < ScalarT >::type, PHX::Device > | value_views [MAX_VALUES] |
Kokkos::View< const double *, typename PHX::DevLayout < ScalarT >::type, PHX::Device > | scalars |
int | numValues |
Additional Inherited Members | |
Public Types inherited from panzer::DomainEvaluator | |
enum | DomainType : int { OWNED =0, GHOST =1, REAL =2, VIRTUAL =3, ALL =4 } |
Domain types supported by worksets. More... | |
Protected Attributes inherited from panzer::EvaluatorWithBaseImpl< TRAITS > | |
WorksetDetailsAccessor | wda |
Definition at line 137 of file Panzer_Sum.hpp.
|
private |
Definition at line 168 of file Panzer_Sum.hpp.
|
private |
Enumerator | |
---|---|
MAX_VALUES |
Definition at line 176 of file Panzer_Sum.hpp.
panzer::SumStatic< EvalT, TRAITS, Tag0, Tag1, void >::SumStatic | ( | const Teuchos::ParameterList & | p | ) |
Definition at line 265 of file Panzer_Sum_impl.hpp.
panzer::SumStatic< EvalT, TRAITS, Tag0, Tag1, void >::SumStatic | ( | const std::vector< PHX::Tag< typename EvalT::ScalarT >> & | inputs, |
const std::vector< double > & | scalar_values, | ||
const PHX::Tag< typename EvalT::ScalarT > & | output | ||
) |
Tag only Constructor.
Perform a linear combination of fields using only input tags and double vectors.
[in] | inputs | Tags associated with rank 2 arrays to be summed |
[in] | scalar_values | Vector of length inputs.size() or zero. If the length is equal to inputs.size() each entry is scaled. Otherwise 1.0 is assumed. |
[in] | output | Destination array tag for the summation. |
Definition at line 317 of file Panzer_Sum_impl.hpp.
void panzer::SumStatic< EvalT, TRAITS, Tag0, Tag1, void >::postRegistrationSetup | ( | typename TRAITS::SetupData | d, |
PHX::FieldManager< TRAITS > & | fm | ||
) |
Definition at line 361 of file Panzer_Sum_impl.hpp.
void panzer::SumStatic< EvalT, TRAITS, Tag0, Tag1, void >::evaluateFields | ( | typename TRAITS::EvalData | d | ) |
Definition at line 372 of file Panzer_Sum_impl.hpp.
KOKKOS_INLINE_FUNCTION void panzer::SumStatic< EvalT, TRAITS, Tag0, Tag1, void >::operator() | ( | const ScalarsTag | , |
const unsigned | c | ||
) | const |
Definition at line 388 of file Panzer_Sum_impl.hpp.
KOKKOS_INLINE_FUNCTION void panzer::SumStatic< EvalT, TRAITS, Tag0, Tag1, void >::operator() | ( | const NoScalarsTag | , |
const unsigned | c | ||
) | const |
Definition at line 401 of file Panzer_Sum_impl.hpp.
|
private |
Definition at line 170 of file Panzer_Sum.hpp.
|
private |
Definition at line 171 of file Panzer_Sum.hpp.
|
private |
Definition at line 172 of file Panzer_Sum.hpp.
|
private |
Definition at line 177 of file Panzer_Sum.hpp.
|
private |
Definition at line 178 of file Panzer_Sum.hpp.
|
private |
Definition at line 179 of file Panzer_Sum.hpp.
|
private |
Definition at line 180 of file Panzer_Sum.hpp.