diff --git a/src/finiteVolume/fields/fvPatchFields/derived/totalPressure/totalPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/totalPressure/totalPressureFvPatchScalarField.C index af9da8b752..945189142d 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/totalPressure/totalPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/totalPressure/totalPressureFvPatchScalarField.C @@ -116,9 +116,15 @@ void Foam::totalPressureFvPatchScalarField::updateCoeffs() const scalar t = this->db().time().userTimeValue(); updateCoeffs(p0_, Up - Upiov.tangentialVelocity()->value(t)); } + else + { + updateCoeffs(p0_, Up); + } + } + else + { + updateCoeffs(p0_, Up); } - - updateCoeffs(p0_, Up); }