mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Changing V0 not to be registered in order to avoid mapping. But writing it down
by fvMesh.writeObject().
This commit is contained in:
@ -199,7 +199,7 @@ void Foam::fvMesh::storeOldVol(const scalarField& V)
|
||||
*this,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
true
|
||||
false
|
||||
),
|
||||
*this,
|
||||
dimVolume
|
||||
@ -281,8 +281,8 @@ Foam::fvMesh::fvMesh(const IOobject& io)
|
||||
time().timeName(),
|
||||
*this,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::AUTO_WRITE,
|
||||
true
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
),
|
||||
*this
|
||||
);
|
||||
@ -869,6 +869,11 @@ bool Foam::fvMesh::writeObject
|
||||
// solver smooth restart using second order time schemes.
|
||||
//ok = phiPtr_->oldTime().write();
|
||||
}
|
||||
if (V0Ptr_ && V0Ptr_->writeOpt() == IOobject::AUTO_WRITE)
|
||||
{
|
||||
// For second order restarts we need to write V0
|
||||
ok = V0Ptr_->write();
|
||||
}
|
||||
|
||||
return ok && polyMesh::writeObject(fmt, ver, cmp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user