Commit 84d7141e authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: adjust return branching

parent 65c2ec29
......@@ -40,8 +40,8 @@ Foam::AnisothermalPhaseModel<BasePhaseModel>::filterPressureWork
{
const volScalarField& alpha = *this;
scalar pressureWorkAlphaLimit =
this->thermo_->getOrDefault<scalar>("pressureWorkAlphaLimit", 0);
const scalar pressureWorkAlphaLimit =
this->thermo_->getOrDefault("pressureWorkAlphaLimit", scalar(0));
if (pressureWorkAlphaLimit > 0)
{
......@@ -51,10 +51,8 @@ Foam::AnisothermalPhaseModel<BasePhaseModel>::filterPressureWork
/max(alpha - pressureWorkAlphaLimit, pressureWorkAlphaLimit)
)*pressureWork;
}
else
{
return pressureWork;
}
return pressureWork;
}
......
Markdown is supported
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