00001 /********************************************************************** 00002 ** This program is part of 'MOOSE', the 00003 ** Messaging Object Oriented Simulation Environment. 00004 ** Copyright (C) 2003-2007 Upinder S. Bhalla. and NCBS 00005 ** It is made available under the terms of the 00006 ** GNU Lesser General Public License version 2.1 00007 ** See the file COPYING.LIB for the full notice. 00008 **********************************************************************/ 00009 00010 #ifndef _ODE_SYSTEM_H 00011 #define _ODE_SYSTEM_H 00012 00013 class OdeSystem { 00014 public: 00015 OdeSystem() 00016 : method( "rk5" ), 00017 initStepSize( 1 ), 00018 epsAbs( 1e-6 ), 00019 epsRel( 1e-6 ) 00020 {;} 00021 00022 string method; 00023 // GSL stuff 00024 #ifdef USE_GSL 00025 gsl_odeiv2_system gslSys; 00026 const gsl_odeiv2_step_type* gslStep; 00027 #endif 00028 double initStepSize; 00029 00030 double epsAbs; // Absolute error 00031 double epsRel; // Relative error 00032 }; 00033 00034 #endif // _ODE_SYSTEM_H