mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: pressure FO - create new tmp to avoid db clash
This commit is contained in:
@ -176,11 +176,16 @@ bool Foam::functionObjects::pressure::calc()
|
||||
{
|
||||
const volScalarField& p = lookupObject<volScalarField>(fieldName_);
|
||||
|
||||
return store
|
||||
tmp<volScalarField> tp
|
||||
(
|
||||
resultName_,
|
||||
coeff(pRef(pDyn(p, rhoScale(p))))
|
||||
new volScalarField
|
||||
(
|
||||
resultName_,
|
||||
coeff(pRef(pDyn(p, rhoScale(p))))
|
||||
)
|
||||
);
|
||||
|
||||
return store(resultName_, tp);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user