From 8bf1774be08357d138a45feaa84097bfb7ab2c60 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Tue, 13 May 2008 14:14:36 +0200 Subject: [PATCH] Removed pointZones directory layer, cosmetics changes to ZoneMesh. --- src/OpenFOAM/Make/files | 3 +- .../meshes/polyMesh/zones/ZoneID/ZoneID.H | 15 ++--- .../polyMesh/zones/ZoneID/polyPatchID.H | 9 +-- .../meshes/polyMesh/zones/ZoneMesh/ZoneMesh.C | 60 +++++++++---------- .../meshes/polyMesh/zones/ZoneMesh/ZoneMesh.H | 20 +++---- .../polyMesh/zones/ZoneMesh/cellZoneMeshFwd.H | 5 +- .../polyMesh/zones/ZoneMesh/faceZoneMeshFwd.H | 5 +- .../zones/ZoneMesh/pointZoneMeshFwd.H | 5 +- .../polyMesh/zones/cellZone/newCellZone.C | 19 +++--- .../polyMesh/zones/faceZone/newFaceZone.C | 19 +++--- .../pointZone/indirectPointList.H | 0 .../{pointZones => }/pointZone/newPointZone.C | 20 +++---- .../{pointZones => }/pointZone/pointZone.C | 0 .../{pointZones => }/pointZone/pointZone.H | 0 14 files changed, 83 insertions(+), 97 deletions(-) rename src/OpenFOAM/meshes/polyMesh/zones/{pointZones => }/pointZone/indirectPointList.H (100%) rename src/OpenFOAM/meshes/polyMesh/zones/{pointZones => }/pointZone/newPointZone.C (84%) rename src/OpenFOAM/meshes/polyMesh/zones/{pointZones => }/pointZone/pointZone.C (100%) rename src/OpenFOAM/meshes/polyMesh/zones/{pointZones => }/pointZone/pointZone.H (100%) diff --git a/src/OpenFOAM/Make/files b/src/OpenFOAM/Make/files index 7759afcb82..3f0eb04b00 100644 --- a/src/OpenFOAM/Make/files +++ b/src/OpenFOAM/Make/files @@ -348,8 +348,7 @@ faceZone = $(zones)/faceZone $(faceZone)/faceZone.C $(faceZone)/newFaceZone.C -pointZones = $(zones)/pointZones -pointZone = $(pointZones)/pointZone +pointZone = $(zones)/pointZone $(pointZone)/pointZone.C $(pointZone)/newPointZone.C diff --git a/src/OpenFOAM/meshes/polyMesh/zones/ZoneID/ZoneID.H b/src/OpenFOAM/meshes/polyMesh/zones/ZoneID/ZoneID.H index 4e4a4968fb..3c9f0fd653 100644 --- a/src/OpenFOAM/meshes/polyMesh/zones/ZoneID/ZoneID.H +++ b/src/OpenFOAM/meshes/polyMesh/zones/ZoneID/ZoneID.H @@ -27,8 +27,9 @@ Class Description A class holds the data needed to identify a zone in a dynamic mesh. - The zone is identified by name. Its index in the zoneMesh is updated - if the mesh has changed. + + The zone is identified by name. + Its index in the zoneMesh is updated if the mesh has changed. \*---------------------------------------------------------------------------*/ @@ -44,7 +45,7 @@ Description namespace Foam { -template class ZoneMesh; +template class ZoneMesh; // Forward declaration of friend functions and operators @@ -74,14 +75,14 @@ public: // Constructors //- Construct from name - ZoneID(const word& name, const ZoneMesh& zm) + ZoneID(const word& name, const ZoneMesh& zm) : name_(name), index_(zm.findZoneID(name)) {} //- Construct from Istream - ZoneID(Istream& is, const ZoneMesh& zm) + ZoneID(Istream& is, const ZoneMesh& zm) : name_(is), index_(zm.findZoneID(name_)) @@ -116,11 +117,11 @@ public: // Edit //- Update - void update(const ZoneMesh& zm) + void update(const ZoneMesh& zm) { index_ = zm.findZoneID(name_); } - + // IOstream Operators diff --git a/src/OpenFOAM/meshes/polyMesh/zones/ZoneID/polyPatchID.H b/src/OpenFOAM/meshes/polyMesh/zones/ZoneID/polyPatchID.H index a9dad69257..529cccc3fa 100644 --- a/src/OpenFOAM/meshes/polyMesh/zones/ZoneID/polyPatchID.H +++ b/src/OpenFOAM/meshes/polyMesh/zones/ZoneID/polyPatchID.H @@ -26,9 +26,10 @@ Class Foam::polyPatchID Description - A class holds the data needed to identify a patch in a dynamic - mesh. The patch is identified by name and its index in the - boundary mesh is updated if the mesh has changed. + A class holds the data needed to identify a patch in a dynamic mesh. + + The patch is identified by name and its index in the boundary mesh + is updated if the mesh has changed. \*---------------------------------------------------------------------------*/ @@ -112,7 +113,7 @@ public: { index_ = bm.findPatchID(name_); } - + // Ostream Operator diff --git a/src/OpenFOAM/meshes/polyMesh/zones/ZoneMesh/ZoneMesh.C b/src/OpenFOAM/meshes/polyMesh/zones/ZoneMesh/ZoneMesh.C index 0a90edc9c0..1320673ca5 100644 --- a/src/OpenFOAM/meshes/polyMesh/zones/ZoneMesh/ZoneMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/zones/ZoneMesh/ZoneMesh.C @@ -35,8 +35,8 @@ namespace Foam // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -template -void ZoneMesh::calcZoneMap() const +template +void ZoneMesh::calcZoneMap() const { // It is an error to attempt to recalculate cellEdges // if the pointer is already set @@ -77,8 +77,8 @@ void ZoneMesh::calcZoneMap() const // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // Read constructor given IOobject and a MeshType reference -template -ZoneMesh::ZoneMesh +template +ZoneMesh::ZoneMesh ( const IOobject& io, const MeshType& mesh @@ -136,8 +136,8 @@ ZoneMesh::ZoneMesh // Construct given size. Zones will be set later -template -ZoneMesh::ZoneMesh +template +ZoneMesh::ZoneMesh ( const IOobject& io, const MeshType& mesh, @@ -153,8 +153,8 @@ ZoneMesh::ZoneMesh // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // -template -ZoneMesh::~ZoneMesh() +template +ZoneMesh::~ZoneMesh() { clearAddressing(); } @@ -163,8 +163,8 @@ ZoneMesh::~ZoneMesh() // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // Map of zones for quick zone lookup -template -const Map