Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
9cb57f7f
Commit
9cb57f7f
authored
Feb 07, 2019
by
mattijs
Committed by
Andrew Heather
Feb 07, 2019
Browse files
ENH: restart: save/restore cumulative continuity error. See
#1172
.
parent
e3008553
Changes
2
Hide whitespace changes
Inline
Side-by-side
applications/solvers/heatTransfer/chtMultiRegionFoam/chtMultiRegionSimpleFoam/fluid/initContinuityErrs.H
0 → 100644
View file @
9cb57f7f
scalar
cumulativeContErr
=
0
;
applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/initContinuityErrs.H
View file @
9cb57f7f
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
());
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment