Fixed deletion of a bad pointer in CVodesIntegrator

m_fdata was not initialized to 0, so if the integrator was deleted before
initialize() was called, the destructor would attempt to delete it using the
uninitialized value.
This commit is contained in:
Ray Speth 2012-05-24 16:29:16 +00:00
parent a78755b971
commit d70507ad79

View file

@ -131,7 +131,9 @@ CVodesIntegrator::CVodesIntegrator() :
m_abstolsens(1.0e-4),
m_nabs(0),
m_hmax(0.0),
m_maxsteps(20000), m_np(0),
m_maxsteps(20000),
m_fdata(0),
m_np(0),
m_mupper(0), m_mlower(0)
{
//m_ropt.resize(OPT_SIZE,0.0);