diff --git a/libsrc/meshing/curvedelems.cpp b/libsrc/meshing/curvedelems.cpp index e694968c..2eb5f956 100644 --- a/libsrc/meshing/curvedelems.cpp +++ b/libsrc/meshing/curvedelems.cpp @@ -547,12 +547,10 @@ namespace netgen void CurvedElements :: BuildCurvedElements(const Refinement * ref, int aorder, bool arational) { - bool working = (ntasks == 1) || (id > 0); ishighorder = 0; order = 1; - // MPI_Comm curve_comm; const auto & curve_comm = mesh.GetCommunicator(); #ifdef PARALLEL @@ -567,6 +565,8 @@ namespace netgen int rank = curve_comm.Rank(); int ntasks = curve_comm.Size(); + bool working = (ntasks == 1) || (id > 0); + if (working) order = aorder;