fix refinement if no geometry is available

This commit is contained in:
Christopher Lackner 2019-07-30 09:54:46 +02:00
parent 20abe6ec37
commit ec5ec39909

View File

@ -1163,10 +1163,11 @@ namespace netgen
biopt.refine_hp = 1;
biopt.task_manager = task_manager;
biopt.tracer = tracer;
const Refinement & ref = mesh->GetGeometry()->GetRefinement();
ref.Bisect (*mesh, biopt);
if(mesh->GetGeometry())
mesh->GetGeometry()->GetRefinement().Bisect (*mesh, biopt);
else
Refinement().Bisect(*mesh, biopt);
(*tracer)("call updatetop", false);
mesh -> UpdateTopology(task_manager, tracer);
(*tracer)("call updatetop", true);