43 #ifndef PANZER_INTEGRATOR_BASISTIMESSCALAR_HPP
44 #define PANZER_INTEGRATOR_BASISTIMESSCALAR_HPP
56 #include "Kokkos_DynRankView.hpp"
63 #include "Phalanx_Evaluator_Derived.hpp"
64 #include "Phalanx_MDField.hpp"
79 template<
typename EvalT,
typename Traits>
83 public PHX::EvaluatorDerived<EvalT, Traits>
123 const std::string& resName,
124 const std::string& valName,
128 const std::vector<std::string>& fmNames =
129 std::vector<std::string>());
209 template<
int NUM_FIELD_MULT>
229 template<
int NUM_FIELD_MULT>
230 KOKKOS_INLINE_FUNCTION
234 const std::size_t& cell)
const;
270 PHX::MDField<ScalarT, panzer::Cell, panzer::BASIS>
field_;
276 PHX::MDField<const ScalarT, panzer::Cell, panzer::IP>
scalar_;
288 std::vector<PHX::MDField<const ScalarT, panzer::Cell, panzer::IP>>
296 Kokkos::View<Kokkos::View<
const ScalarT**,
318 PHX::MDField<double, panzer::Cell, panzer::BASIS, panzer::IP>
basis_;
324 #endif // PANZER_INTEGRATOR_BASISTIMESSCALAR_HPP
int numQP_
The number of quadrature points for each cell.
const panzer::EvaluatorStyle evalStyle_
An enum determining the behavior of this Evaluator.
PHX::MDField< ScalarT, panzer::Cell, panzer::BASIS > field_
A field to which we'll contribute, or in which we'll store, the result of computing this integral...
std::string basisName_
The name of the basis we're using.
This empty struct allows us to optimize operator()() depending on the number of field multipliers...
Integrator_BasisTimesScalar(const panzer::EvaluatorStyle &evalStyle, const std::string &resName, const std::string &valName, const panzer::BasisIRLayout &basis, const panzer::IntegrationRule &ir, const double &multiplier=1, const std::vector< std::string > &fmNames=std::vector< std::string >())
Main Constructor.
EvaluatorStyle
An indication of how an Evaluator will behave.
KOKKOS_INLINE_FUNCTION void operator()(const FieldMultTag< NUM_FIELD_MULT > &tag, const std::size_t &cell) const
Perform the integration.
double multiplier
The scalar multiplier out in front of the integral ( ).
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
Kokkos::View< Kokkos::View< const ScalarT **, typename PHX::DevLayout< ScalarT >::type, PHX::Device > * > kokkosFieldMults_
The Kokkos::View representation of the (possibly empty) list of fields that are multipliers out in fr...
panzer::EvaluatorStyle evalStyle
The EvaluatorStyle of the parent Integrator_CurlBasisDotVector object.
PHX::MDField< const ScalarT, panzer::Cell, panzer::IP > scalar_
A field representing the scalar function we're integrating ( ).
typename EvalT::ScalarT ScalarT
The scalar type.
void evaluateFields(typename Traits::EvalData workset)
Evaluate Fields.
std::size_t basisIndex_
The index in the Workset bases for our particular BasisIRLayout name.
double multiplier_
The scalar multiplier out in front of the integral ( ).
void postRegistrationSetup(typename Traits::SetupData sd, PHX::FieldManager< Traits > &fm)
Post-Registration Setup.
std::vector< PHX::MDField< const ScalarT, panzer::Cell, panzer::IP > > fieldMults_
The (possibly empty) list of fields that are multipliers out in front of the integral ( ...
Teuchos::RCP< Teuchos::ParameterList > getValidParameters() const
Get Valid Parameters.
PHX::MDField< double, panzer::Cell, panzer::BASIS, panzer::IP > basis_
The scalar basis information necessary for integration.