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

BUG: fixedPressure: map value as well as gradient

parent f6673d4b
Branches
Tags
No related merge requests found
......@@ -53,8 +53,12 @@ Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField
fixedGradientFvPatchScalarField(p, iF),
curTimeIndex_(-1)
{
// Map value. Set unmapped values and overwrite with mapped ptf
fvPatchField<scalar>::operator=(patchInternalField());
map(ptf, mapper);
// Map gradient. Set unmapped values and overwrite with mapped ptf
gradient() = 0.0;
map(gradient(), mapper);
gradient().map(ptf.gradient(), mapper);
}
......
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