11 #ifndef PANZER_ZEROCONTRIBUTEDFIELD_HPP
12 #define PANZER_ZEROCONTRIBUTEDFIELD_HPP
24 #include "Phalanx_Evaluator_Derived.hpp"
25 #include "Phalanx_MDField.hpp"
35 template<
typename EvalT,
typename Traits>
53 const std::string& fieldName,
81 #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.