mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
new timers
This commit is contained in:
parent
bc836f87ef
commit
e0f290676f
@ -1298,8 +1298,7 @@ namespace netgen
|
||||
SurfaceElementIndex sei = top.GetFace2SurfaceElement (f+1)-1;
|
||||
PointGeomInfo gi = mesh[sei].GeomInfoPi(1);
|
||||
|
||||
ref -> ProjectToSurface (pp, surfnr[facenr], gi);
|
||||
|
||||
ref -> ProjectToSurface (pp, surfnr[facenr], gi);
|
||||
Vec<3> dist = pp-xa[jj];
|
||||
|
||||
CalcTrigShape (order1, lami[fnums[1]]-lami[fnums[0]],
|
||||
|
@ -6,8 +6,7 @@ namespace netgen
|
||||
|
||||
DLL_HEADER void Optimize2d (Mesh & mesh, MeshingParameters & mp)
|
||||
{
|
||||
static int timer = NgProfiler::CreateTimer ("optimize2d");
|
||||
NgProfiler::RegionTimer reg(timer);
|
||||
static Timer timer("optimize2d"); RegionTimer reg(timer);
|
||||
|
||||
mesh.CalcSurfacesOfNode();
|
||||
|
||||
|
@ -195,7 +195,7 @@ namespace netgen
|
||||
|
||||
MESHING2_RESULT Meshing2 :: GenerateMesh (Mesh & mesh, const MeshingParameters & mp, double gh, int facenr)
|
||||
{
|
||||
static int timer = NgProfiler::CreateTimer ("surface meshing");
|
||||
static Timer timer("surface meshing"); RegionTimer reg(timer);
|
||||
|
||||
static int timer1 = NgProfiler::CreateTimer ("surface meshing1");
|
||||
static int timer2 = NgProfiler::CreateTimer ("surface meshing2");
|
||||
@ -206,8 +206,6 @@ namespace netgen
|
||||
static int ts3 = NgProfiler::CreateTimer ("surface meshing start 3");
|
||||
|
||||
|
||||
NgProfiler::RegionTimer reg (timer);
|
||||
|
||||
NgProfiler::StartTimer (ts1);
|
||||
|
||||
Array<int> pindex, lindex;
|
||||
|
@ -729,11 +729,11 @@ namespace netgen
|
||||
return;
|
||||
}
|
||||
|
||||
static int timer = NgProfiler::CreateTimer ("MeshSmoothing 2D");
|
||||
static Timer timer("MeshSmoothing 2D");
|
||||
static int timer1 = NgProfiler::CreateTimer ("MeshSmoothing 2D start");
|
||||
static int timer2 = NgProfiler::CreateTimer ("MeshSmoothing 2D - BFGS");
|
||||
|
||||
NgProfiler::RegionTimer reg (timer);
|
||||
RegionTimer reg (timer);
|
||||
NgProfiler::StartTimer (timer1);
|
||||
|
||||
CheckMeshApproximation (mesh);
|
||||
|
@ -899,8 +899,8 @@ namespace netgen
|
||||
|
||||
multithread.task = "Optimizing surface";
|
||||
|
||||
static int timer_opt2d = NgProfiler::CreateTimer ("Optimization 2D");
|
||||
NgProfiler::StartTimer (timer_opt2d);
|
||||
static Timer timer_opt2d("Optimization 2D");
|
||||
timer_opt2d.Start();
|
||||
|
||||
for (k = 1; k <= mesh.GetNFD(); k++)
|
||||
{
|
||||
@ -974,8 +974,7 @@ namespace netgen
|
||||
|
||||
mesh.CalcSurfacesOfNode();
|
||||
mesh.Compress();
|
||||
|
||||
NgProfiler::StopTimer (timer_opt2d);
|
||||
timer_opt2d.Stop();
|
||||
|
||||
multithread.task = savetask;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user