11#ifndef __Panzer_Integerator_BasisTimesVector_decl_hpp__
12#define __Panzer_Integerator_BasisTimesVector_decl_hpp__
24#include "Kokkos_DynRankView.hpp"
31#include "Phalanx_Evaluator_Derived.hpp"
32#include "Phalanx_MDField.hpp"
48 template<
typename EvalT,
typename Traits>
52 public PHX::EvaluatorDerived<EvalT, Traits>
93 const std::string& resName,
94 const std::string& valName,
98 const std::vector<std::string>& fmNames =
99 std::vector<std::string>());
145 const Teuchos::ParameterList& p);
185 const PHX::FieldTag& resTag,
186 const PHX::FieldTag& valTag,
190 const std::vector<PHX::FieldTag>& multipliers =
191 std::vector<PHX::FieldTag>());
226 template<
int NUM_FIELD_MULT>
247 template<
int NUM_FIELD_MULT>
248 KOKKOS_INLINE_FUNCTION
266 Teuchos::RCP<Teuchos::ParameterList>
304 PHX::MDField<ScalarT, panzer::Cell, panzer::BASIS>
field_;
310 PHX::MDField<const ScalarT, panzer::Cell, panzer::IP, panzer::Dim>
323 std::vector<PHX::MDField<const ScalarT, panzer::Cell, panzer::IP>>
331 Kokkos::Array<Kokkos::View<const ScalarT**, typename PHX::DevLayout<ScalarT>::type, Kokkos::MemoryUnmanaged>,3>
kokkosFieldMults_;
panzer::EvaluatorStyle evalStyle
The EvaluatorStyle of the parent Integrator_CurlBasisDotVector object.
double multiplier
The scalar multiplier out in front of the integral ( ).
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
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.
KOKKOS_INLINE_FUNCTION void operator()(const FieldMultTag< NUM_FIELD_MULT > &tag, const typename Kokkos::TeamPolicy< FieldMultTag< NUM_FIELD_MULT >, PHX::exec_space >::member_type &team) const
Perform the integration.
PHX::MDField< const ScalarT, panzer::Cell, panzer::IP, panzer::Dim > vector_
A field representing the vector-valued function we're integrating ( ).
bool useDescriptors_
A flag indicating whether or not to use the descriptor interface.
BasisDescriptor bd_
The BasisDescriptor for the basis to use.
PHX::MDField< const double, panzer::Cell, panzer::BASIS, panzer::IP, panzer::Dim > basis_
The vector basis information necessary for integration.
void postRegistrationSetup(typename Traits::SetupData sd, PHX::FieldManager< Traits > &fm)
Post-Registration Setup.
std::size_t basisIndex_
The index in the Workset bases for our particular BasisIRLayout name.
const panzer::EvaluatorStyle evalStyle_
An enum determining the behavior of this Evaluator.
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 ( ,...
int numQP_
The number of quadrature points for each cell.
Kokkos::Array< Kokkos::View< const ScalarT **, typename PHX::DevLayout< ScalarT >::type, Kokkos::MemoryUnmanaged >, 3 > kokkosFieldMults_
The PHX::View representation of the (possibly empty) list of fields that are multipliers out in front...
std::string basisName_
The name of the basis we're using.
IntegrationDescriptor id_
The IntegrationDescriptor for the quadrature to use.
int numDim_
The dimensionality of our vector-valued fields.
double multiplier_
The scalar multiplier out in front of the integral ( ).
void evaluateFields(typename Traits::EvalData workset)
Evaluate Fields.
typename EvalT::ScalarT ScalarT
The scalar type.
Teuchos::RCP< Teuchos::ParameterList > getValidParameters() const
Get Valid Parameters.
EvaluatorStyle
An indication of how an Evaluator will behave.
This empty struct allows us to optimize operator()() depending on the number of field multipliers.