Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
19 namespace panzer {
20 
31 template<typename EvalT, typename Traits>
32 class Constant
33  :
34  public panzer::EvaluatorWithBaseImpl<Traits>,
35  public PHX::EvaluatorDerived<EvalT, Traits>
36 {
37  public:
38 
40 
41  void
44 
45  void
46  evaluateFields(typename Traits::EvalData d);
47 
48  private:
49 
50  using ScalarT = typename EvalT::ScalarT;
51 
52  double value;
53 
55 
56 }; // end of class Constant
57 
58 
59 }
60 
61 #endif
typename EvalT::ScalarT ScalarT
Constant(const Teuchos::ParameterList &p)
PHX::MDField< ScalarT > constant
void evaluateFields(typename Traits::EvalData d)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)