11#ifndef PANZER_ZEROCONTRIBUTEDFIELD_IMPL_HPP
12#define PANZER_ZEROCONTRIBUTEDFIELD_IMPL_HPP
21 template<
typename EvalT,
typename Traits>
24 const std::string& fieldName,
25 PHX::DataLayout& layout)
28 using Teuchos::rcpFromRef;
29 field_ = MDField<ScalarT>(fieldName, rcpFromRef(layout));
30 this->addEvaluatedField(
field_);
31 this->setName(
"ZeroContributedField: " +
field_.fieldTag().identifier());
39 template<
typename EvalT,
typename Traits>
PHX::MDField< ScalarT > field_
The field being initialized to zero.
ZeroContributedField(const std::string &fieldName, PHX::DataLayout &layout)
Constructor.
typename EvalT::ScalarT ScalarT
The scalar data type.
void evaluateFields(typename Traits::EvalData d) override
Evaluate the field.
const panzer::Workset & EvalData
Data type passed to PHX::Evaluator::evaluateFields(): a single workset holding the cell data for one ...