mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
fix refinement if no geometry is available
This commit is contained in:
parent
20abe6ec37
commit
ec5ec39909
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user