Skip to content
Snippets Groups Projects
Commit 13d8998c authored by Mark Olesen's avatar Mark Olesen
Browse files

Cosmetic changes in preparation for an extra template parameter.

parent cfed7e32
No related merge requests found
......@@ -76,12 +76,12 @@ void ZoneMesh<ZoneType>::calcZoneMap() const
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Read constructor given IOobject and a polyMesh reference
// Read constructor given IOobject and a MeshType reference
template<class ZoneType>
ZoneMesh<ZoneType>::ZoneMesh
(
const IOobject& io,
const polyMesh& mesh
const MeshType& mesh
)
:
PtrList<ZoneType>(),
......@@ -122,7 +122,7 @@ ZoneMesh<ZoneType>::ZoneMesh
is.check
(
"ZoneMesh::ZoneMesh"
"(const IOobject&, const polyMesh&)"
"(const IOobject&, const MeshType&)"
);
close();
......@@ -140,7 +140,7 @@ template<class ZoneType>
ZoneMesh<ZoneType>::ZoneMesh
(
const IOobject& io,
const polyMesh& mesh,
const MeshType& mesh,
const label size
)
:
......@@ -175,8 +175,8 @@ const Map<label>& ZoneMesh<ZoneType>::zoneMap() const
}
// Given a global object index, return the zone it is in. If
//object does not belong to any zones, return -1
// Given a global object index, return the zone it is in.
// If object does not belong to any zones, return -1
template<class ZoneType>
label ZoneMesh<ZoneType>::whichZone(const label objectIndex) const
{
......
......@@ -69,8 +69,11 @@ class ZoneMesh
{
// Private data
//- Typedef in preparation of a second template parameter
typedef polyMesh MeshType;
//- Reference to mesh
const polyMesh& mesh_;
const MeshType& mesh_;
//- Map of zone labels for given element
mutable Map<label>* zoneMapPtr_;
......@@ -93,18 +96,18 @@ public:
// Constructors
//- Read constructor given IOobject and a polyMesh reference
//- Read constructor given IOobject and a MeshType reference
ZoneMesh
(
const IOobject&,
const polyMesh&
const MeshType&
);
//- Construct given size
ZoneMesh
(
const IOobject&,
const polyMesh&,
const MeshType&,
const label size
);
......@@ -116,7 +119,7 @@ public:
// Member functions
//- Return the mesh reference
const polyMesh& mesh() const
const MeshType& mesh() const
{
return mesh_;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment