mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20:34 +05:00
fix refinement if no geometry is available
This commit is contained in:
parent
20abe6ec37
commit
ec5ec39909
@ -1164,9 +1164,10 @@ namespace netgen
|
|||||||
biopt.task_manager = task_manager;
|
biopt.task_manager = task_manager;
|
||||||
biopt.tracer = tracer;
|
biopt.tracer = tracer;
|
||||||
|
|
||||||
const Refinement & ref = mesh->GetGeometry()->GetRefinement();
|
if(mesh->GetGeometry())
|
||||||
ref.Bisect (*mesh, biopt);
|
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