mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +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.refine_hp = 1;
|
||||||
biopt.task_manager = task_manager;
|
biopt.task_manager = task_manager;
|
||||||
biopt.tracer = tracer;
|
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);
|
(*tracer)("call updatetop", false);
|
||||||
mesh -> UpdateTopology(task_manager, tracer);
|
mesh -> UpdateTopology(task_manager, tracer);
|
||||||
(*tracer)("call updatetop", true);
|
(*tracer)("call updatetop", true);
|
||||||
|
Loading…
Reference in New Issue
Block a user