1 /*!
2  * \file  mfront/src/Gradient.cxx
3  * \brief
4  * \author Thomas Helfer
5  * \brief 11 mai 2013
6  * \copyright Copyright (C) 2006-2018 CEA/DEN, EDF R&D. All rights
7  * reserved.
8  * This project is publicly released under either the GNU GPL Licence
9  * or the CECILL-A licence. A copy of thoses licences are delivered
10  * with the sources of TFEL. CEA or EDF may also distribute this
11  * project under specific licensing conditions.
12  */
13 
14 #include"MFront/Gradient.hxx"
15 
16 namespace mfront {
17 
setIsIncrementKnownAttribute(VariableDescription & v,const bool b)18   void Gradient::setIsIncrementKnownAttribute(VariableDescription& v,
19                                               const bool b) {
20     return v.setAttribute("Gradient::is_increment_known", b, false);
21   }  // end of Gradient::setIsIncrementKnownAttribute
22 
isIncrementKnown(const VariableDescription & v)23   bool Gradient::isIncrementKnown(const VariableDescription& v) {
24     return v.getAttribute<bool>("Gradient::is_increment_known", false);
25   }  // end of Gradient::isIncrementKnown
26 
Gradient(const std::string & t,const std::string & n)27   Gradient::Gradient(const std::string& t, const std::string& n)
28       : VariableDescription(t, n, 1u, 0u) {}  // end of Gradient::Gradient
29 
Gradient(const std::string & t,const std::string & s,const std::string & n)30   Gradient::Gradient(const std::string& t,
31                      const std::string& s,
32                      const std::string& n)
33       : VariableDescription(t, s, n, 1u, 0u) {}  // end of Gradient::Gradient
34 
Gradient(const VariableDescription & v)35   Gradient::Gradient(const VariableDescription& v)
36       : VariableDescription(v) {}  // end of Gradient::Gradient
37 
38   Gradient::Gradient(Gradient&&) = default;
39   Gradient::Gradient(const Gradient&) = default;
40   Gradient& Gradient::operator=(Gradient&&) = default;
41   Gradient& Gradient::operator=(const Gradient&) = default;
42 
43   Gradient::~Gradient() noexcept = default;
44 
45 } // end of namespace mfront
46 
47