From e17b2a4cd5ee8f76452292924cc0dc0ed2479b75 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Mon, 29 Feb 2016 13:14:16 +0100 Subject: [PATCH] master shouldn't refine --- libsrc/meshing/refine.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libsrc/meshing/refine.cpp b/libsrc/meshing/refine.cpp index efea21f5..686b7190 100644 --- a/libsrc/meshing/refine.cpp +++ b/libsrc/meshing/refine.cpp @@ -15,6 +15,10 @@ namespace netgen { PrintMessage (3, "Refine mesh"); + if (ntasks > 1 && id == 0) + return; + + // reduce 2nd order mesh.ComputeNVertices(); mesh.SetNP(mesh.GetNV()); @@ -350,7 +354,7 @@ namespace netgen } PrintMessage (5, "have 2d elements"); - + // cout << "id = " << id << ", ne = " << mesh.GetNE() << endl; // refine volume elements int oldne = mesh.GetNE(); mesh.VolumeElements().SetAllocSize(8*oldne);