Commit 95b2df68 authored by pugmire's avatar pugmire

Memory related bug in adamsbashforth solver.


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@7186 18c085ea-50e0-402c-830e-de6fd14e8384
parent f8645725
......@@ -296,6 +296,9 @@ avtIVPAdamsBashforth::SetTolerances(const double& relt, const double& abst)
// Dave Pugmire, Tue Mar 10 12:41:11 EDT 2009
// Bug fix in parallel communication of solver state.
//
// Dave Pugmire, Tue May 5 10:43:05 EDT 2009
// Memory issue with history init. Make sure vecs are of proper size.
//
// ****************************************************************************
void
......@@ -310,9 +313,11 @@ avtIVPAdamsBashforth::Reset(const double& t_start, const avtVecRef& y_start)
h = h_max;
initialized = 0;
for( size_t i=1; i<STEPS; ++i )
for( size_t j=0; j<yCur.dim(); ++j )
history[i].values()[j] = 0;
history[0] = avtVec(yCur.dim());
history[1] = avtVec(yCur.dim());
history[2] = avtVec(yCur.dim());
history[3] = avtVec(yCur.dim());
history[4] = avtVec(yCur.dim());
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment