From 76c0c52bed7092796409e51a03375a4a131faaa8 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Tue, 26 Apr 2022 22:45:08 +0200 Subject: [PATCH] paralleltop also in sequential version --- libsrc/meshing/curvedelems.cpp | 4 ++-- libsrc/meshing/meshclass.hpp | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/libsrc/meshing/curvedelems.cpp b/libsrc/meshing/curvedelems.cpp index c591407f..9773e2f4 100644 --- a/libsrc/meshing/curvedelems.cpp +++ b/libsrc/meshing/curvedelems.cpp @@ -560,10 +560,10 @@ namespace netgen order = 1; auto comm = mesh.GetCommunicator(); -#ifdef PARALLEL + // #ifdef PARALLEL enum { MPI_TAG_CURVE = MPI_TAG_MESH+20 }; const ParallelMeshTopology & partop = mesh.GetParallelTopology (); -#endif + //#endif int ntasks = comm.Size(); bool working = (ntasks == 1) || (comm.Rank() > 0); diff --git a/libsrc/meshing/meshclass.hpp b/libsrc/meshing/meshclass.hpp index fbe3d03c..56ee1fa4 100644 --- a/libsrc/meshing/meshclass.hpp +++ b/libsrc/meshing/meshclass.hpp @@ -150,10 +150,10 @@ namespace netgen mutable int ps_startelement; -#ifdef PARALLEL + // #ifdef PARALLEL /// connection to parallel meshes unique_ptr paralleltop; -#endif + // #endif shared_ptr geometry; @@ -903,12 +903,11 @@ namespace netgen -#ifdef PARALLEL /// returns parallel topology class ParallelMeshTopology & GetParallelTopology () const { return *paralleltop; } - +#ifdef PARALLEL /// distributes the master-mesh to local meshes void Distribute (); void Distribute (NgArray & volume_weights, NgArray & surface_weights,