GeometricField::GeometricBoundaryField -> GeometricField::Boundary

When the GeometricBoundaryField template class was originally written it
was a separate class in the Foam namespace rather than a sub-class of
GeometricField as it is now.  Without loss of clarity and simplifying
code which access the boundary field of GeometricFields it is better
that GeometricBoundaryField be renamed Boundary for consistency with the
new naming convention for the type of the dimensioned internal field:
Internal, see commit 4a57b9be2e

This is a very simple text substitution change which can be applied to
any code which compiles with the OpenFOAM-dev libraries.
This commit is contained in:
Henry Weller
2016-04-28 07:22:02 +01:00
parent 4a57b9be2e
commit ea5401c770
164 changed files with 396 additions and 396 deletions

View File

@ -62,7 +62,7 @@ void Foam::fvMeshAdder::MapVolField
// ~~~~~~~~~~~~~~~~~~~~~~~~~~
typename GeometricField<Type, fvPatchField, volMesh>::
GeometricBoundaryField& bfld = fld.boundaryFieldRef();
Boundary& bfld = fld.boundaryFieldRef();
{
const labelList& oldPatchMap = meshMap.oldPatchMap();
@ -330,7 +330,7 @@ void Foam::fvMeshAdder::MapSurfaceField
const labelList& oldPatchStarts = meshMap.oldPatchStarts();
typename GeometricField<Type, fvsPatchField, surfaceMesh>::
GeometricBoundaryField& bfld = fld.boundaryFieldRef();
Boundary& bfld = fld.boundaryFieldRef();
// Internal field
// ~~~~~~~~~~~~~~

View File

@ -113,7 +113,7 @@ void Foam::fvMeshDistribute::mapBoundaryFields
forAllIter(typename HashTable<fldType*>, flds, iter)
{
fldType& fld = *iter();
typename fldType::GeometricBoundaryField& bfld =
typename fldType::Boundary& bfld =
fld.boundaryFieldRef();
const FieldField<fvsPatchField, T>& oldBfld = oldBflds[fieldI++];
@ -161,7 +161,7 @@ void Foam::fvMeshDistribute::initPatchFields
{
GeoField& fld = *iter();
typename GeoField::GeometricBoundaryField& bfld =
typename GeoField::Boundary& bfld =
fld.boundaryFieldRef();
forAll(bfld, patchi)

View File

@ -47,7 +47,7 @@ void Foam::fvMeshTools::addPatchFields
{
GeoField& fld = *iter();
typename GeoField::GeometricBoundaryField& bfld =
typename GeoField::Boundary& bfld =
fld.boundaryFieldRef();
label sz = bfld.size();
@ -101,7 +101,7 @@ void Foam::fvMeshTools::setPatchFields
{
GeoField& fld = *iter();
typename GeoField::GeometricBoundaryField& bfld =
typename GeoField::Boundary& bfld =
fld.boundaryFieldRef();
if (patchFieldDict.found(fld.name()))
@ -140,7 +140,7 @@ void Foam::fvMeshTools::setPatchFields
{
GeoField& fld = *iter();
typename GeoField::GeometricBoundaryField& bfld =
typename GeoField::Boundary& bfld =
fld.boundaryFieldRef();
bfld[patchi] == value;
@ -182,7 +182,7 @@ void Foam::fvMeshTools::reorderPatchFields
{
GeoField& fld = *iter();
typename GeoField::GeometricBoundaryField& bfld =
typename GeoField::Boundary& bfld =
fld.boundaryFieldRef();
bfld.reorder(oldToNew);

View File

@ -428,7 +428,7 @@ void Foam::motionSmootherAlgo::setDisplacementPatchFields
pointVectorField& displacement
)
{
pointVectorField::GeometricBoundaryField& displacementBf =
pointVectorField::Boundary& displacementBf =
displacement.boundaryFieldRef();
// Adapt the fixedValue bc's (i.e. copy internal point data to
@ -584,7 +584,7 @@ void Foam::motionSmootherAlgo::correctBoundaryConditions
const lduSchedule& patchSchedule = mesh_.globalData().patchSchedule();
pointVectorField::GeometricBoundaryField& displacementBf =
pointVectorField::Boundary& displacementBf =
displacement.boundaryFieldRef();
// 1. evaluate on adaptPatches
@ -771,7 +771,7 @@ Foam::tmp<Foam::pointField> Foam::motionSmootherAlgo::curPoints() const
wordList actualPatchFieldTypes;
{
const pointVectorField::GeometricBoundaryField& pfld =
const pointVectorField::Boundary& pfld =
displacement_.boundaryField();
actualPatchFieldTypes.setSize(pfld.size());
forAll(pfld, patchi)

View File

@ -57,7 +57,7 @@ void Foam::motionSmootherAlgo::checkConstraints
}
typename FldType::GeometricBoundaryField& bFld = pf.boundaryField();
typename FldType::Boundary& bFld = pf.boundaryField();
// Evaluate in reverse order