From 672ce3f3f2089e11904f347185b328a24aca7a43 Mon Sep 17 00:00:00 2001 From: Lukas Date: Fri, 6 Mar 2020 10:17:09 +0100 Subject: [PATCH] Interface can now give curve order of mesh --- libsrc/include/nginterface_v2.hpp | 1 + libsrc/interface/nginterface_v2.cpp | 4 ++++ 2 files changed, 5 insertions(+) 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)