37 #ifndef _CVODEADAPTOR_HPP_ 38 #define _CVODEADAPTOR_HPP_ 43 #include <boost/serialization/base_object.hpp> 45 #include "AbstractIvpOdeSolver.hpp" 46 #include "OdeSolution.hpp" 49 #include <cvode/cvode.h> 50 #include <nvector/nvector_serial.h> 59 void CvodeErrorHandler(
int errorCode,
const char *module,
const char *
function,
60 char *message,
void* pData);
70 std::vector<realtype>*
pY;
96 friend class boost::serialization::access;
103 template<
class Archive>
104 void serialize(Archive & archive,
const unsigned int version)
106 archive & boost::serialization::base_object<AbstractIvpOdeSolver>(*this);
109 archive & mLastInternalStepSize;
111 archive & mCheckForRoots;
156 void RecordStoppingPoint(
double stopTime,
N_Vector yEnd);
169 std::vector<double>& rInitialY,
170 double startTime,
double maxStep);
175 void FreeCvodeMemory();
186 void CvodeError(
int flag,
const char * msg);
212 void SetTolerances(
double relTol=1e-4,
double absTol=1e-6);
217 double GetRelativeTolerance();
222 double GetAbsoluteTolerance();
227 double GetLastStepSize();
236 void SetForceReset(
bool autoReset);
245 void SetMinimalReset(
bool minimalReset);
272 std::vector<double>& rYValues,
276 double timeSampling);
289 std::vector<double>& rYValues,
299 void CheckForStoppingEvents();
307 void SetMaxSteps(
long int numSteps);
313 long int GetMaxSteps();
319 #endif // _CVODEADAPTOR_HPP_ 320 #endif // CHASTE_CVODE
AbstractOdeSystem * pSystem
N_Vector mLastSolutionState
double mLastInternalStepSize
std::vector< realtype > * pY
#define CHASTE_CLASS_EXPORT(T)
void serialize(Archive &archive, const unsigned int version)
gcov doesn't like this file...