From 20e528e8bd7d15cdc7425eb19becf6e787e2b6e9 Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 21 Oct 2008 14:01:18 +0100 Subject: [PATCH] xfer constructors --- src/OpenFOAM/meshes/polyMesh/polyMesh.C | 464 ++++++++++++++++++++++++ 1 file changed, 464 insertions(+) diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.C b/src/OpenFOAM/meshes/polyMesh/polyMesh.C index 3b7961979d..31ff85bf2c 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.C @@ -35,6 +35,8 @@ License #include "OSspecific.H" #include "demandDrivenData.H" +#include "pointMesh.H" + // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // namespace Foam @@ -425,6 +427,162 @@ Foam::polyMesh::polyMesh } +Foam::polyMesh::polyMesh +( + const IOobject& io, + const xfer& points, + const xfer& faces, + const xfer& owner, + const xfer& 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