Skip to content
Snippets Groups Projects
Commit a6f9a198 authored by Henry's avatar Henry
Browse files

fixedFluxPressure: Ensure gradient is initialised to 0 before mapping

parent e2a043d0
Branches
Tags
No related merge requests found
......@@ -50,9 +50,12 @@ Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField
const fvPatchFieldMapper& mapper
)
:
fixedGradientFvPatchScalarField(ptf, p, iF, mapper),
fixedGradientFvPatchScalarField(p, iF),
curTimeIndex_(-1)
{}
{
gradient() = 0.0;
map(gradient(), mapper);
}
Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField
......
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