ENH: Setting V0 to NO_WRITE, but registered in the database

This commit is contained in:
sergio
2017-06-27 08:56:39 -07:00
parent ff2a811bdb
commit 50cc938677

View File

@ -198,7 +198,7 @@ void Foam::fvMesh::storeOldVol(const scalarField& V)
time().timeName(), time().timeName(),
*this, *this,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::AUTO_WRITE, IOobject::NO_WRITE,
true true
), ),
*this, *this,
@ -865,6 +865,9 @@ bool Foam::fvMesh::writeObject
if (phiPtr_) if (phiPtr_)
{ {
ok = phiPtr_->write(); ok = phiPtr_->write();
// NOTE: The old old time mesh phi might be necessary for certain
// solver smooth restart using second order time schemes.
//ok = phiPtr_->oldTime().write();
} }
return ok && polyMesh::writeObject(fmt, ver, cmp); return ok && polyMesh::writeObject(fmt, ver, cmp);