11#ifndef PANZER_EVALUATOR_CONSTANT_VECTOR_HPP
12#define PANZER_EVALUATOR_CONSTANT_VECTOR_HPP
14#include "PanzerDiscFE_config.hpp"
16#include "Phalanx_Evaluator_Macros.hpp"
17#include "Phalanx_MDField.hpp"
29template<
typename EvalT,
typename Traits>
32 public PHX::EvaluatorDerived<EvalT, Traits>
50 PHX::MDField<ScalarT>
vec_;
Kokkos::View< double * > vals_
PHX::MDField< ScalarT > vec_
ConstantVector(const Teuchos::ParameterList &p)
Construct from a ParameterList specifying the field name, data layout, and the constant vector compon...
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)
Sets the vector field to the constant components given at construction. Called once before the first ...
typename EvalT::ScalarT ScalarT
void evaluateFields(typename Traits::EvalData d)
No-op; the vector field is already set by postRegistrationSetup().
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
const panzer::Workset & EvalData
Data type passed to PHX::Evaluator::evaluateFields(): a single workset holding the cell data for one ...
const SD & SetupData
Data type passed to PHX::Evaluator::postRegistrationSetup().