Skip to content
Snippets Groups Projects
Commit 9cb57f7f authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

ENH: restart: save/restore cumulative continuity error. See #1172.

parent e3008553
Branches
Tags
No related merge requests found
scalar cumulativeContErr = 0;
List<scalar> cumulativeContErr(fluidRegions.size(), Zero);
PtrList<uniformDimensionedScalarField> cumulativeContErrIO(fluidRegions.size());
forAll(cumulativeContErrIO, i)
{
#include "setRegionFluidFields.H"
cumulativeContErrIO.set
(
i,
new uniformDimensionedScalarField
(
IOobject
(
"cumulativeContErr",
runTime.timeName(),
"uniform",
mesh,
IOobject::READ_IF_PRESENT,
IOobject::AUTO_WRITE
),
dimensionedScalar(dimless, Zero)
)
);
}
UPtrList<scalar> cumulativeContErr(cumulativeContErrIO.size());
forAll(cumulativeContErrIO, i)
{
cumulativeContErr.set(i, &cumulativeContErrIO[i].value());
}
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