11#ifndef PANZER_EVALUATOR_CONSTANT_FLUX_DECL_HPP
12#define PANZER_EVALUATOR_CONSTANT_FLUX_DECL_HPP
14#include "PanzerDiscFE_config.hpp"
16#include "Phalanx_Evaluator_Macros.hpp"
17#include "Phalanx_MDField.hpp"
30template<
typename EvalT,
typename Traits>
34 public PHX::EvaluatorDerived<EvalT, Traits>
40 const Teuchos::ParameterList& p);
59 PHX::MDField<ScalarT>
flux;
typename EvalT::ScalarT ScalarT
ConstantFlux(const Teuchos::ParameterList &p)
Construct from a ParameterList specifying the flux field name, data layout, and constant per-dimensio...
PHX::MDField< ScalarT > flux
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)
Sets the flux field to the constant values given at construction. Called once before the first evalua...
void evaluateFields(typename Traits::EvalData d)
No-op; the flux field is already set by postRegistrationSetup().
std::vector< ScalarT > values
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().