LifeV
ExpressionScalar.cpp
Go to the documentation of this file.
1 //@HEADER
2 /*
3 *******************************************************************************
4 
5  Copyright (C) 2004, 2005, 2007 EPFL, Politecnico di Milano, INRIA
6  Copyright (C) 2010 EPFL, Politecnico di Milano, Emory University
7 
8  This file is part of LifeV.
9 
10  LifeV is free software; you can redistribute it and/or modify
11  it under the terms of the GNU Lesser General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  LifeV is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public License
21  along with LifeV. If not, see <http://www.gnu.org/licenses/>.
22 
23 *******************************************************************************
24 */
25 //@HEADER
26 
27 /*!
28  @file
29  @brief File containing the implementation of the scalar expression.
30 
31  @author Samuel Quinodoz <samuel.quinodoz@epfl.ch>
32 
33  @date 07-2011
34  */
35 
36 #ifndef EXPRESSION_SCALAR_CPP
37 #define EXPRESSION_SCALAR_CPP
38 
39 #include <lifev/eta/expression/ExpressionScalar.hpp>
40 
41 namespace LifeV
42 {
43 
44 namespace ExpressionAssembly
45 {
46 
47 // ===================================================
48 // Constructors & Destructor
49 // ===================================================
50 
51 ExpressionScalar::ExpressionScalar (const Real& myValue)
52  : base_Type(),
53  M_value (myValue)
54 {}
55 
56 
57 ExpressionScalar::ExpressionScalar (const ExpressionScalar& expr)
58  : base_Type(),
59  M_value (expr.M_value)
60 {}
61 
62 
63 ExpressionScalar::~ExpressionScalar()
64 {}
65 
66 // ===================================================
67 // Methods
68 // ===================================================
69 
70 void
71 ExpressionScalar::display (std::ostream& out)
72 {
73  out << "scalar";
74 }
75 
76 // ===================================================
77 // Get Methods
78 // ===================================================
79 
80 const Real&
81 ExpressionScalar::value() const
82 {
83  return M_value;
84 }
85 
86 
87 } // Namespace ExpressionAssembly
88 
89 } // Namespace LifeV
90 
91 #endif
void updateInverseJacobian(const UInt &iQuadPt)
double Real
Generic real data.
Definition: LifeV.hpp:175