diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.C b/src/OpenFOAM/meshes/polyMesh/polyMesh.C index fecef49959..0b1e679013 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.C @@ -230,7 +230,7 @@ Foam::polyMesh::polyMesh(const IOobject& io) } else { - cellIOList c + cellIOList cLst ( IOobject ( @@ -243,9 +243,8 @@ Foam::polyMesh::polyMesh(const IOobject& io) ) ); - // Set the primitive mesh - initMesh(c); + initMesh(cLst); owner_.write(); neighbour_.write(); @@ -271,162 +270,6 @@ Foam::polyMesh::polyMesh(const IOobject& io) } -Foam::polyMesh::polyMesh -( - const IOobject& io, - const pointField& points, - const faceList& faces, - const labelList& owner, - const labelList& neighbour, - const bool syncPar -) -: - objectRegistry(io), - primitiveMesh(), - points_ - ( - IOobject - ( - "points", - instance(), - meshSubDir, - *this, - IOobject::NO_READ, - IOobject::AUTO_WRITE - ), - points - ), - faces_ - ( - IOobject - ( - "faces", - instance(), - meshSubDir, - *this, - IOobject::NO_READ, - IOobject::AUTO_WRITE - ), - faces - ), - owner_ - ( - IOobject - ( - "owner", - instance(), - meshSubDir, - *this, - IOobject::NO_READ, - IOobject::AUTO_WRITE - ), - owner - ), - neighbour_ - ( - IOobject - ( - "neighbour", - instance(), - meshSubDir, - *this, - IOobject::NO_READ, - IOobject::AUTO_WRITE - ), - neighbour - ), - clearedPrimitives_(false), - boundary_ - ( - IOobject - ( - "boundary", - instance(), - meshSubDir, - *this, - IOobject::NO_READ, - IOobject::AUTO_WRITE - ), - *this, - 0 - ), - bounds_(points_, syncPar), - directions_(Vector