mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
GeometricField::internalField() -> GeometricField::internalFieldRef()
Non-const access to the internal field now obtained from a specifically
named access function consistent with the new names for non-canst access
to the boundary field boundaryFieldRef() and dimensioned internal field
dimensionedInternalFieldRef().
See also commit 22f4ad32b1
This commit is contained in:
@ -325,7 +325,7 @@ void Foam::meshToMesh::mapSrcToTgt
|
||||
GeometricField<Type, fvPatchField, volMesh>& result
|
||||
) const
|
||||
{
|
||||
mapSrcToTgt(field, cop, result.internalField());
|
||||
mapSrcToTgt(field, cop, result.internalFieldRef());
|
||||
|
||||
const PtrList<AMIPatchToPatchInterpolation>& AMIList = patchAMIs();
|
||||
|
||||
|
||||
@ -83,7 +83,7 @@ void Foam::distanceSurface::createGeometry()
|
||||
// Internal field
|
||||
{
|
||||
const pointField& cc = fvm.C();
|
||||
scalarField& fld = cellDistance.internalField();
|
||||
scalarField& fld = cellDistance.internalFieldRef();
|
||||
|
||||
List<pointIndexHit> nearest;
|
||||
surfPtr_().findNearest
|
||||
@ -257,7 +257,7 @@ void Foam::distanceSurface::createGeometry()
|
||||
pointMesh::New(fvm),
|
||||
dimensionedScalar("zero", dimLength, 0)
|
||||
);
|
||||
pDist.internalField() = pointDistance_;
|
||||
pDist.internalFieldRef() = pointDistance_;
|
||||
|
||||
Pout<< "Writing point distance:" << pDist.objectPath() << endl;
|
||||
pDist.write();
|
||||
|
||||
@ -125,7 +125,7 @@ void Foam::sampledCuttingPlane::createGeometry()
|
||||
// Internal field
|
||||
{
|
||||
const pointField& cc = fvm.cellCentres();
|
||||
scalarField& fld = cellDistance.internalField();
|
||||
scalarField& fld = cellDistance.internalFieldRef();
|
||||
|
||||
forAll(cc, i)
|
||||
{
|
||||
@ -217,7 +217,7 @@ void Foam::sampledCuttingPlane::createGeometry()
|
||||
pointMesh::New(fvm),
|
||||
dimensionedScalar("zero", dimLength, 0)
|
||||
);
|
||||
pDist.internalField() = pointDistance_;
|
||||
pDist.internalFieldRef() = pointDistance_;
|
||||
|
||||
Pout<< "Writing point distance:" << pDist.objectPath() << endl;
|
||||
pDist.write();
|
||||
|
||||
Reference in New Issue
Block a user