MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
BoostSys.cpp
Go to the documentation of this file.
1 /*
2  * =====================================================================================
3  *
4  * Filename: BoostSystem.cpp
5  *
6  * Description: Ode system described boost library.
7  *
8  * Created: 04/11/2016 10:58:34 AM
9  * Compiler: g++
10  *
11  * Author: Dilawar Singh (), dilawars@ncbs.res.in
12  * Organization: NCBS Bangalore
13  *
14  * =====================================================================================
15  */
16 
17 #include "BoostSys.h"
18 #include <iostream>
19 #include "VoxelPools.h"
20 
21 #ifdef USE_BOOST_ODE
22 
23 BoostSys::BoostSys( ) : vp( NULL )
24 { ; }
25 
26 BoostSys::~BoostSys()
27 { ; }
28 
29 
30 void BoostSys::operator()( const vector_type_ y
31  , vector_type_& dydt, const double t )
32 {
33  assert( vp );
34  VoxelPools::evalRates( y, dydt, t, vp );
35 }
36 
37 #else /* ----- not USE_BOOST_ODE ----- */
38 
39 #endif /* ----- not USE_BOOST_ODE ----- */