Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_TestScatter_decl.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Panzer: A partial differential equation assembly
4// engine for strongly coupled complex multiphysics systems
5//
6// Copyright 2011 NTESS and the Panzer contributors.
7// SPDX-License-Identifier: BSD-3-Clause
8// *****************************************************************************
9// @HEADER
10
11#ifndef PANZER_EVALUATOR_TEST_SCATTER_DECL_HPP
12#define PANZER_EVALUATOR_TEST_SCATTER_DECL_HPP
13
14#include "Phalanx_Evaluator_Macros.hpp"
15#include "Phalanx_MDField.hpp"
16
18
19namespace panzer {
20
26template<typename EvalT, typename Traits>
28 :
29 public panzer::EvaluatorWithBaseImpl<Traits>,
30 public PHX::EvaluatorDerived<EvalT, Traits>
31{
32 public:
33
36 const Teuchos::ParameterList& p);
37
39 void
41 typename Traits::SetupData d,
43
45 void
47 typename Traits::EvalData d);
48
49 private:
50
51 using ScalarT = typename EvalT::ScalarT;
52 PHX::MDField<ScalarT,Cell,NODE> scatter_value;
53 PHX::MDField<const ScalarT,Cell,NODE> value;
55
56 std::size_t num_nodes;
57 static int offset;
58}; // end of class TestScatter
59
60
61}
62
63#endif
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
typename EvalT::ScalarT ScalarT
PHX::MDField< ScalarT, Cell, NODE > scatter_value
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)
Looks up the number of nodes per cell needed by evaluateFields(). Called once before the first evalua...
void evaluateFields(typename Traits::EvalData d)
Computes the output field for this workset per the class description.
PHX::MDField< const ScalarT, Cell, NODE > value
User-defined data passed to PHX::Evaluator::postRegistrationSetup() during the one-time setup phase.