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:
parent
a78755b971
commit
d70507ad79
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue