Merge branch 'curve_after_mesh_refine' into 'master'

recalculate element curve coefficients after refine

See merge request ngsolve/netgen!569
This commit is contained in:
Lackner, Christopher 2023-05-10 09:46:44 +02:00
commit ea1b53eb20

View File

@ -1187,7 +1187,10 @@ namespace netgen
(*tracer)("call updatetop", false);
mesh -> UpdateTopology(task_manager, tracer);
(*tracer)("call updatetop", true);
mesh -> GetCurvedElements().SetIsHighOrder (false);
if(mesh->GetCurvedElements().IsHighOrder())
mesh->GetCurvedElements()
.BuildCurvedElements(&mesh->GetGeometry()->GetRefinement(),
mesh->GetCurvedElements().GetOrder());
}