diff --git a/ng/nginterface.cpp b/ng/nginterface.cpp index 3ab92d22..44bd6c66 100644 --- a/ng/nginterface.cpp +++ b/ng/nginterface.cpp @@ -1143,6 +1143,7 @@ void Ng_HPRefinement (int levels, double parameter) void Ng_HPRefinement (int levels, double parameter, bool setorders, bool ref_level) { + NgLock meshlock (mesh->MajorMutex(), true); Refinement & ref = const_cast (ng_geometry -> GetRefinement()); HPRefinement (*mesh, &ref, levels); /*