VertexCFD  0.0-dev
VertexCFD_ScalarParameter.hpp
1 #ifndef VERTEXCFD_SCALARPARAMETER_HPP
2 #define VERTEXCFD_SCALARPARAMETER_HPP
3 
4 #include <Panzer_GlobalData.hpp>
5 
6 #include <string>
7 
8 namespace VertexCFD
9 {
10 namespace Parameter
11 {
12 //---------------------------------------------------------------------------//
13 // Global scalar parameter. Parameters managed by this class will be
14 // updated from the parameter library.
15 //---------------------------------------------------------------------------//
16 template<class EvalType>
18 {
19  public:
20  using scalar_type = typename EvalType::ScalarT;
21 
22  ScalarParameter(const std::string& name, scalar_type& ref_to_parameter);
23 
24  const std::string& name() const;
25 
26  void update(const panzer::GlobalData& global_data);
27 
28  private:
29  std::string _name;
30  scalar_type& _ref_to_parameter;
31 };
32 
33 //---------------------------------------------------------------------------//
34 
35 } // namespace Parameter
36 } // namespace VertexCFD
37 
38 #endif // end VERTEXCFD_SCALARPARAMETER_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::Parameter::ScalarParameter
Definition: VertexCFD_ScalarParameter.hpp:18