43 #ifndef PANZER_ZEROCONTRIBUTEDFIELD_HPP
44 #define PANZER_ZEROCONTRIBUTEDFIELD_HPP
56 #include "Phalanx_Evaluator_Derived.hpp"
57 #include "Phalanx_MDField.hpp"
67 template<
typename EvalT,
typename Traits>
71 public PHX::EvaluatorDerived<EvalT, Traits>
85 const std::string& fieldName,
86 PHX::DataLayout& layout);
113 #endif // PANZER_ZEROCONTRIBUTEDFIELD_HPP
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
PHX::MDField< ScalarT > field_
The field being initialized to zero.
void evaluateFields(typename Traits::EvalData d) override
Evaluate the field.
typename EvalT::ScalarT ScalarT
The scalar data type.
Build a field using a specified data layout, and set it to zero.
ZeroContributedField(const std::string &fieldName, PHX::DataLayout &layout)
Constructor.