Changed tmp<pointField> construction to use the new simpler "New" method
avoiding unnecessary database registration of temporary fields
This commit is contained in:
@ -62,14 +62,9 @@ Foam::interpolationCellPointWallModified<Type>::calcPointField
|
|||||||
// Create the point field
|
// Create the point field
|
||||||
tmp<pointVectorField> tPsip
|
tmp<pointVectorField> tPsip
|
||||||
(
|
(
|
||||||
new pointVectorField
|
pointVectorField::New
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
(
|
||||||
"volPointInterpolateWallModified(" + psi.name() + ')',
|
"volPointInterpolateWallModified(" + psi.name() + ')',
|
||||||
mesh.time().timeName(),
|
|
||||||
mesh
|
|
||||||
),
|
|
||||||
pointMesh::New(mesh),
|
pointMesh::New(mesh),
|
||||||
dimensioned<Type>("zero", psi.dimensions(), Zero)
|
dimensioned<Type>("zero", psi.dimensions(), Zero)
|
||||||
)
|
)
|
||||||
|
|||||||
@ -73,14 +73,9 @@ Foam::tmp<Foam::pointScalarField> Foam::functionObjects::streamFunction::calc
|
|||||||
|
|
||||||
tmp<pointScalarField> tstreamFunction
|
tmp<pointScalarField> tstreamFunction
|
||||||
(
|
(
|
||||||
new pointScalarField
|
pointScalarField::New
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
(
|
||||||
"streamFunction",
|
"streamFunction",
|
||||||
time_.timeName(),
|
|
||||||
mesh_
|
|
||||||
),
|
|
||||||
pMesh,
|
pMesh,
|
||||||
dimensionedScalar(phi.dimensions(), 0)
|
dimensionedScalar(phi.dimensions(), 0)
|
||||||
)
|
)
|
||||||
|
|||||||
@ -1817,16 +1817,9 @@ Foam::tmp<Foam::pointVectorField> Foam::meshRefinement::makeDisplacementField
|
|||||||
// postprocessable field.
|
// postprocessable field.
|
||||||
tmp<pointVectorField> tfld
|
tmp<pointVectorField> tfld
|
||||||
(
|
(
|
||||||
new pointVectorField
|
pointVectorField::New
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
(
|
||||||
"pointDisplacement",
|
"pointDisplacement",
|
||||||
mesh.time().timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
pMesh,
|
pMesh,
|
||||||
dimensionedVector(dimLength, Zero),
|
dimensionedVector(dimLength, Zero),
|
||||||
patchFieldTypes
|
patchFieldTypes
|
||||||
|
|||||||
@ -857,16 +857,9 @@ Foam::snappyLayerDriver::makeLayerDisplacementField
|
|||||||
// postprocessable field.
|
// postprocessable field.
|
||||||
tmp<pointVectorField> tfld
|
tmp<pointVectorField> tfld
|
||||||
(
|
(
|
||||||
new pointVectorField
|
pointVectorField::New
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
(
|
||||||
"pointDisplacement",
|
"pointDisplacement",
|
||||||
mesh.time().timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
pMesh,
|
pMesh,
|
||||||
dimensionedVector(dimLength, Zero),
|
dimensionedVector(dimLength, Zero),
|
||||||
patchFieldTypes,
|
patchFieldTypes,
|
||||||
|
|||||||
Reference in New Issue
Block a user