[1D] Move OneDim::needJacUpdate to the correct source file

This commit is contained in:
Ray Speth 2014-01-06 18:46:03 +00:00
parent fc008d067d
commit 2653c0a16b
3 changed files with 11 additions and 10 deletions

View file

@ -344,7 +344,6 @@ public:
* Set this if something has changed in the governing
* equations (e.g. the value of a constant has been changed,
* so that the last-computed Jacobian is no longer valid.
* Note: see file OneDim.cpp for the implementation of this method.
*/
void needJacUpdate();

View file

@ -3,7 +3,9 @@
*/
#include "cantera/oneD/Domain1D.h"
#include "cantera/base/ctml.h"
#include "cantera/oneD/OneDim.h"
#include "cantera/oneD/MultiJac.h"
#include "cantera/base/ctml.h"
#include <cstdio>
@ -105,6 +107,14 @@ void Domain1D::setTolerancesSS(doublereal rtol, doublereal atol, size_t n)
setSteadyTolerances(rtol, atol, n);
}
void Domain1D::needJacUpdate()
{
if (m_container) {
m_container->jacobian().setAge(10000);
m_container->saveStats();
}
}
void Domain1D::
eval(size_t jg, doublereal* xg, doublereal* rg,
integer* mask, doublereal rdt)

View file

@ -320,14 +320,6 @@ void OneDim::init()
m_init = true;
}
void Domain1D::needJacUpdate()
{
if (m_container) {
m_container->jacobian().setAge(10000);
m_container->saveStats();
}
}
doublereal OneDim::timeStep(int nsteps, doublereal dt, doublereal* x,
doublereal* r, int loglevel)
{