antioch-0.4.0
gsl_spliner_shim.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" //only of we have GSL
28 
29 #ifdef ANTIOCH_HAVE_GSL
30 
31 // This class
33 
34 // Antioch
36 
37 namespace Antioch
38 {
40  namespace AntiochPrivate
41  {
42  GSLSplinerShim::GSLSplinerShim()
43  : _impl( new GSLSplinerImplementation() )
44  {}
45 
46  GSLSplinerShim::~GSLSplinerShim()
47  {
48  delete _impl;
49  }
50 
51  void GSLSplinerShim::spline_init( const double* x, const double* y, unsigned int size )
52  {
53  _impl->spline_init(x,y,size);
54  }
55 
56  void GSLSplinerShim::spline_clear()
57  {
58  _impl->spline_clear();
59  }
60 
61  double GSLSplinerShim::eval(double x) const
62  {
63  return _impl->eval(x);
64  }
65 
66  double GSLSplinerShim::eval_deriv(double x) const
67  {
68  return _impl->eval_deriv(x);
69  }
70 
71  } // end namespace AntiochPrivate
72 } // end namespace Antioch
73 
74 #endif// if ANTIOCH_HAVE_GSL
The parameters are reduced parameters.

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