Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_Constant_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_CONSTANT_DECL_HPP
12#define PANZER_EVALUATOR_CONSTANT_DECL_HPP
13
14#include "PanzerDiscFE_config.hpp"
15#include "Phalanx_Evaluator_Macros.hpp"
16#include "Phalanx_MDField.hpp"
18
19namespace panzer {
20
31template<typename EvalT, typename Traits>
33 :
34 public panzer::EvaluatorWithBaseImpl<Traits>,
35 public PHX::EvaluatorDerived<EvalT, Traits>
36{
37 public:
38
39 Constant(const Teuchos::ParameterList& p);
40
41 void
44
45 void
47
48 private:
49
50 using ScalarT = typename EvalT::ScalarT;
51
52 double value;
53
54 PHX::MDField<ScalarT> constant;
55
56}; // end of class Constant
57
58
59}
60
61#endif
PHX::MDField< ScalarT > constant
typename EvalT::ScalarT ScalarT
void evaluateFields(typename Traits::EvalData d)
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.