diff --git a/libsrc/include/nginterface_v2.hpp b/libsrc/include/nginterface_v2.hpp index 081422d3..417bdf72 100644 --- a/libsrc/include/nginterface_v2.hpp +++ b/libsrc/include/nginterface_v2.hpp @@ -343,6 +343,7 @@ namespace netgen void SetRefinementFlag (size_t elnr, bool flag); void Curve (int order); + int GetCurveOrder (); void Refine (NG_REFINEMENT_TYPE reftype, void (*taskmanager)(function) = &DummyTaskManager2, diff --git a/libsrc/interface/nginterface_v2.cpp b/libsrc/interface/nginterface_v2.cpp index a961e999..f40823e3 100644 --- a/libsrc/interface/nginterface_v2.cpp +++ b/libsrc/interface/nginterface_v2.cpp @@ -1134,6 +1134,10 @@ namespace netgen mesh->BuildCurvedElements(order); } + int Ngx_Mesh :: GetCurveOrder () + { + return mesh->GetCurvedElements().GetOrder(); + } template <> DLL_HEADER void Ngx_Mesh :: SetRefinementFlag<2> (size_t elnr, bool flag)