Merge branch 'export_curve_order' into 'master'

Interface can now give curve order of mesh

See merge request jschoeberl/netgen!314
This commit is contained in:
Joachim Schöberl 2020-03-11 12:53:00 +00:00
commit 612b5bb75a
2 changed files with 5 additions and 0 deletions

View File

@ -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<void(int,int)>) = &DummyTaskManager2,

View File

@ -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)