[1D] Move OneDim::needJacUpdate to the correct source file
This commit is contained in:
parent
fc008d067d
commit
2653c0a16b
3 changed files with 11 additions and 10 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue