Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_ScalarParameterEntry.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_SCALAR_PARAMETER_ENTRY_HPP
12#define PANZER_SCALAR_PARAMETER_ENTRY_HPP
13
14#include "Panzer_Traits.hpp"
15#include "Sacado_ScalarParameterEntry.hpp"
17
18namespace panzer {
19
20 template <typename EvalType>
21 class ScalarParameterEntry : public Sacado::ScalarParameterEntry<EvalType,panzer::EvaluationTraits> {
22
23 public:
24
25 typedef typename Sacado::ScalarParameterEntry<EvalType,panzer::EvaluationTraits>::ScalarT ScalarT;
26
27 void setRealValue(double value)
28 {
29 m_parameter = ScalarT(value);
30 }
31
32 void setValue(const ScalarT& value)
33 {
34 m_parameter = value;
35 }
36
37 const ScalarT& getValue() const
38 {
39 return m_parameter;
40 }
41
42 private:
43
45
46 };
47
48}
49
50#endif
Sacado::ScalarParameterEntry< EvalType, panzer::EvaluationTraits >::ScalarT ScalarT