Skip to content

Commit e4a5826

Browse files
author
Dilawar Singh
committed
Fixes for BOOST.
1 parent 9e27fdb commit e4a5826

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

ksolve/VoxelPools.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ void VoxelPools::advance( const ProcInfo* p )
152152
#elif USE_BOOST_ODE
153153
// NOTE: Make sure to assing vp to BoostSys vp. In next call, it will be used by
154154
// updateRates func. Unlike gsl call, we can't pass extra void* to gslFunc.
155-
VoxelPools* vp = reinterpret_cast< VoxelPools* >( sys_.params );
156-
sys_.vp = vp;
155+
VoxelPools* vp = reinterpret_cast< VoxelPools* >( this );
156+
157157
/*-----------------------------------------------------------------------------
158158
NOTE: 04/21/2016 11:31:42 AM
159159

ksolve/VoxelPools.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,14 @@ class VoxelPools: public VoxelPoolsBase
5454
void setInitDt( double dt );
5555

5656
#ifdef USE_GSL /* ----- not USE_BOOST ----- */
57-
5857
static int gslFunc( double t, const double* y, double *dydt, void* params);
59-
60-
// System of LSODA.
61-
static void lsodaSys( double t, double* y, double* dydt, void* params);
62-
6358
#elif USE_BOOST_ODE
6459
static void evalRates( VoxelPools* vp, const vector_type_& y, vector_type_& dydt );
6560
#endif /* ----- not USE_BOOST_ODE ----- */
6661

62+
// System of LSODA.
63+
static void lsodaSys( double t, double* y, double* dydt, void* params);
64+
6765
//////////////////////////////////////////////////////////////////
6866
// Rate manipulation and calculation functions
6967
//////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)