mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 22:50:33 +05:00
progress for analyse geometry
This commit is contained in:
parent
249d785084
commit
1e3ed047db
@ -98,10 +98,14 @@ namespace netgen
|
|||||||
if(mparam.uselocalh)
|
if(mparam.uselocalh)
|
||||||
{
|
{
|
||||||
double eps = 1e-12 * bounding_box.Diam();
|
double eps = 1e-12 * bounding_box.Diam();
|
||||||
|
const char* savetask = multithread.task;
|
||||||
|
multithread.task = "Analyse Edges";
|
||||||
|
|
||||||
// restrict meshsize on edges
|
// restrict meshsize on edges
|
||||||
for(const auto & edge : edges)
|
for(auto i : Range(edges))
|
||||||
{
|
{
|
||||||
|
multithread.percent = 100. * i/edges.Size();
|
||||||
|
const auto & edge = edges[i];
|
||||||
auto length = edge->GetLength();
|
auto length = edge->GetLength();
|
||||||
// skip very short edges
|
// skip very short edges
|
||||||
if(length < eps)
|
if(length < eps)
|
||||||
@ -127,10 +131,16 @@ namespace netgen
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
multithread.task = "Analyse Faces";
|
||||||
// restrict meshsize on faces
|
// restrict meshsize on faces
|
||||||
for(const auto& face : faces)
|
for(auto i : Range(faces))
|
||||||
|
{
|
||||||
|
multithread.percent = 100. * i/faces.Size();
|
||||||
|
const auto& face = faces[i];
|
||||||
face->RestrictH(mesh, mparam);
|
face->RestrictH(mesh, mparam);
|
||||||
}
|
}
|
||||||
|
multithread.task = savetask;
|
||||||
|
}
|
||||||
mesh.LoadLocalMeshSize(mparam.meshsizefilename);
|
mesh.LoadLocalMeshSize(mparam.meshsizefilename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user