diff --git a/libsrc/meshing/delaunay2d.cpp b/libsrc/meshing/delaunay2d.cpp index e92ef963..19ae7afc 100644 --- a/libsrc/meshing/delaunay2d.cpp +++ b/libsrc/meshing/delaunay2d.cpp @@ -39,7 +39,7 @@ namespace netgen cout << "bbox = " << bbox << endl; - Point<3> mpc = bbox.Center(); + // Point<3> mpc = bbox.Center(); bbox.Increase (bbox.Diam()/2); Box<3> meshbox = bbox; diff --git a/libsrc/meshing/localh.cpp b/libsrc/meshing/localh.cpp index 4138fbf4..99767360 100644 --- a/libsrc/meshing/localh.cpp +++ b/libsrc/meshing/localh.cpp @@ -323,7 +323,7 @@ namespace netgen Point3d rpmid(root->xmid[0], root->xmid[1], root->xmid[2]); Vec3d rv(root->h2, root->h2, root->h2); Point3d rx2 = rpmid + rv; - Point3d rx1 = rpmid - rv; + // Point3d rx1 = rpmid - rv; root->flags.pinner = !adfront->SameSide (rpmid, rx2); @@ -477,7 +477,7 @@ namespace netgen Point<2> rpmid(root->xmid[0], root->xmid[1], root->xmid[2]); Vec<2> rv(root->h2, root->h2); Point<2> rx2 = rpmid + rv; - Point<2> rx1 = rpmid - rv; + // Point<2> rx1 = rpmid - rv; root->flags.pinner = !adfront->SameSide (rpmid, rx2); diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index b01417ba..4b6d8053 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -1,7 +1,6 @@ #include #include "meshing.hpp" - namespace netgen { @@ -38,6 +37,7 @@ namespace netgen geomtype = NO_GEOM; bcnames.SetSize(0); + #ifdef PARALLEL paralleltop = new ParallelMeshTopology (*this); #endif diff --git a/libsrc/meshing/meshtype.hpp b/libsrc/meshing/meshtype.hpp index 96e7eb94..1b0ea852 100644 --- a/libsrc/meshing/meshtype.hpp +++ b/libsrc/meshing/meshtype.hpp @@ -770,22 +770,20 @@ namespace netgen return flags.deleted; } + + #ifdef PARALLEL int GetPartition () const { return partitionNumber; } void SetPartition (int nr) { partitionNumber = nr; }; -#endif - int hp_elnr; - -#ifdef PARALLEL bool IsGhost () const { return isghost; } - void SetGhost ( const bool aisghost ) { isghost = aisghost; } #else bool IsGhost () const { return false; } + int GetPartition () const { return 0; } #endif - // friend class Mesh; + int hp_elnr; }; ostream & operator<<(ostream & s, const Element & el);