antioch-0.4.0
arrhenius_rate_valarray_test.C
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // Antioch - A Gas Dynamics Thermochemistry Library
5 //
6 // Copyright (C) 2014-2016 Paul T. Bauman, Benjamin S. Kirk,
7 // Sylvain Plessis, Roy H. Stonger
8 //
9 // Copyright (C) 2013 The PECOS Development Team
10 //
11 // This library is free software; you can redistribute it and/or
12 // modify it under the terms of the Version 2.1 GNU Lesser General
13 // Public License as published by the Free Software Foundation.
14 //
15 // This library 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
21 // License along with this library; if not, write to the Free Software
22 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
23 // Boston, MA 02110-1301 USA
24 //
25 //-----------------------------------------------------------------------el-
26 
27 #include "antioch_config.h"
28 
29 #ifdef ANTIOCH_HAVE_CPPUNIT
30 
31 // C++
32 #include <valarray>
33 
34 // Antioch
37 #include "antioch/units.h"
39 #include "antioch/valarray_utils.h"
40 
41 namespace AntiochTesting
42 {
43  template <typename Scalar>
44  class ArrheniusRateValarrayTest : public ArrheniusRateVectorTestBase<std::valarray<Scalar> >
45  {
46  public:
47 
48  virtual void setUp()
49  {
50  this->init();
51  this->_example = new std::valarray<Scalar>(2*ANTIOCH_N_TUPLES);
52  }
53 
54  virtual void tearDown()
55  {
56  this->clear();
57  delete this->_example;
58  }
59 
60  };
61 
63  {
64  public:
65 
67 
71 
73  };
74 
76  {
77  public:
78 
80 
84 
86  };
87 
89  {
90  public:
91 
93 
97 
99  };
100 
104 
105 } // end namespace AntiochTesting
106 
107 #endif // ANTIOCH_HAVE_CPPUNIT
CPPUNIT_TEST_SUITE(ArrheniusRateValarrayLongDoubleTest)
CPPUNIT_TEST_SUITE_REGISTRATION(ArrheniusRateEigenFloatTest)
Advanced unit class.
CPPUNIT_TEST_SUITE(ArrheniusRateValarrayDoubleTest)
CPPUNIT_TEST_SUITE(ArrheniusRateValarrayFloatTest)

Generated on Thu Jul 7 2016 11:09:47 for antioch-0.4.0 by  doxygen 1.8.8