ENH: use tmp field factory methods [6] (#2723)

- src/functionObjects
This commit is contained in:
Mark Olesen
2024-01-23 10:08:35 +01:00
parent 995a9705e2
commit 71d4a23ec0
17 changed files with 130 additions and 248 deletions

View File

@ -182,7 +182,7 @@ Foam::functionObjects::hydrostaticPressure::hydrostaticPressure
if (read(dict))
{
// Read and store the initial ph_rgh field
volScalarField* ph_rghPtr =
volScalarField* ptr =
new volScalarField
(
IOobject
@ -197,7 +197,7 @@ Foam::functionObjects::hydrostaticPressure::hydrostaticPressure
mesh_
);
regIOobject::store(ph_rghPtr);
regIOobject::store(ptr);
bool reInitialise = dict.getOrDefault("reInitialise", false);