mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
wallHeatFlux: Avoid holding references to temporary fields
This commit is contained in:
@ -218,10 +218,12 @@ bool Foam::functionObjects::wallHeatFlux::execute()
|
||||
(
|
||||
turbulenceModel::propertiesName
|
||||
);
|
||||
const volScalarField& alpha = turbModel.alphaEff();
|
||||
const volScalarField& he = turbModel.transport().he();
|
||||
|
||||
return store(name, calcWallHeatFlux(alpha, he));
|
||||
return store
|
||||
(
|
||||
name,
|
||||
calcWallHeatFlux(turbModel.alphaEff(), turbModel.transport().he())
|
||||
);
|
||||
}
|
||||
else if (foundObject<solidThermo>(solidThermo::dictName))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user