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 a4e2afa4b3
This commit is contained in:
@ -1137,7 +1137,7 @@ void Foam::conformalVoronoiMesh::writeCellSizes
|
||||
zeroGradientFvPatchScalarField::typeName
|
||||
);
|
||||
|
||||
scalarField& cellSize = targetCellSize.internalField();
|
||||
scalarField& cellSize = targetCellSize.internalFieldRef();
|
||||
|
||||
const vectorField& C = mesh.cellCentres();
|
||||
|
||||
@ -1163,7 +1163,7 @@ void Foam::conformalVoronoiMesh::writeCellSizes
|
||||
// zeroGradientFvPatchScalarField::typeName
|
||||
// );
|
||||
|
||||
// targetCellVolume.internalField() = pow3(cellSize);
|
||||
// targetCellVolume.internalFieldRef() = pow3(cellSize);
|
||||
|
||||
// Info<< nl << "Create actualCellVolume volScalarField" << endl;
|
||||
|
||||
@ -1182,7 +1182,7 @@ void Foam::conformalVoronoiMesh::writeCellSizes
|
||||
// zeroGradientFvPatchScalarField::typeName
|
||||
// );
|
||||
|
||||
// actualCellVolume.internalField() = mesh.cellVolumes();
|
||||
// actualCellVolume.internalFieldRef() = mesh.cellVolumes();
|
||||
|
||||
// Info<< nl << "Create equivalentCellSize volScalarField" << endl;
|
||||
|
||||
@ -1201,7 +1201,7 @@ void Foam::conformalVoronoiMesh::writeCellSizes
|
||||
// zeroGradientFvPatchScalarField::typeName
|
||||
// );
|
||||
|
||||
// equivalentCellSize.internalField() = pow
|
||||
// equivalentCellSize.internalFieldRef() = pow
|
||||
// (
|
||||
// actualCellVolume.internalField(),
|
||||
// 1.0/3.0
|
||||
@ -1247,7 +1247,7 @@ void Foam::conformalVoronoiMesh::writeCellSizes
|
||||
// pointPatchVectorField::calculatedType()
|
||||
// );
|
||||
|
||||
// scalarField& cellSize = ptTargetCellSize.internalField();
|
||||
// scalarField& cellSize = ptTargetCellSize.internalFieldRef();
|
||||
|
||||
// const vectorField& P = tetMesh.points();
|
||||
|
||||
@ -1283,7 +1283,7 @@ void Foam::conformalVoronoiMesh::writeCellAlignments
|
||||
// zeroGradientFvPatchTensorField::typeName
|
||||
// );
|
||||
//
|
||||
// tensorField& cellAlignment = cellAlignments.internalField();
|
||||
// tensorField& cellAlignment = cellAlignments.internalFieldRef();
|
||||
//
|
||||
// const vectorField& C = mesh.cellCentres();
|
||||
//
|
||||
|
||||
@ -117,16 +117,14 @@ bool Foam::conformalVoronoiMesh::distributeBackground(const Triangulation& mesh)
|
||||
}
|
||||
}
|
||||
|
||||
scalarField& cwi = cellWeights.internalFieldRef();
|
||||
|
||||
forAll(cellVertices, cI)
|
||||
{
|
||||
// Give a small but finite weight for empty cells. Some
|
||||
// decomposition methods have difficulty with integer overflows in
|
||||
// the sum of the normalised weight field.
|
||||
cellWeights.internalField()[cI] = max
|
||||
(
|
||||
cellVertices[cI],
|
||||
1e-2
|
||||
);
|
||||
cwi[cI] = max(cellVertices[cI], 1e-2);
|
||||
}
|
||||
|
||||
autoPtr<mapDistributePolyMesh> mapDist = decomposition_().distribute
|
||||
|
||||
@ -636,7 +636,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
{
|
||||
// Internal field
|
||||
cellDistance.internalField() = signedDistance
|
||||
cellDistance.internalFieldRef() = signedDistance
|
||||
(
|
||||
distSqr,
|
||||
fvm.C(),
|
||||
@ -701,7 +701,7 @@ int main(int argc, char *argv[])
|
||||
-sqr(GREAT) // null value
|
||||
);
|
||||
|
||||
pointDistance.internalField() = signedDistance
|
||||
pointDistance.internalFieldRef() = signedDistance
|
||||
(
|
||||
pointDistSqr,
|
||||
fvm.points(),
|
||||
|
||||
Reference in New Issue
Block a user