Skip to content
Snippets Groups Projects
Commit f76136f9 authored by mattijs's avatar mattijs
Browse files

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

parent 0c1c075c
No related branches found
No related tags found
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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment