Changed tmp<pointField> construction to use the new simpler "New" method
avoiding unnecessary database registration of temporary fields
This commit is contained in:
@ -73,14 +73,9 @@ Foam::tmp<Foam::pointScalarField> Foam::functionObjects::streamFunction::calc
|
||||
|
||||
tmp<pointScalarField> tstreamFunction
|
||||
(
|
||||
new pointScalarField
|
||||
pointScalarField::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"streamFunction",
|
||||
time_.timeName(),
|
||||
mesh_
|
||||
),
|
||||
"streamFunction",
|
||||
pMesh,
|
||||
dimensionedScalar(phi.dimensions(), 0)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user