From f2cb1a75d4c2c801333760121120bf8524be4890 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sun, 3 Feb 2013 14:37:51 +0000 Subject: [PATCH] remove timers --- libsrc/meshing/topology.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/libsrc/meshing/topology.cpp b/libsrc/meshing/topology.cpp index b9ba6050..2c95b9f9 100644 --- a/libsrc/meshing/topology.cpp +++ b/libsrc/meshing/topology.cpp @@ -163,22 +163,11 @@ namespace netgen if (buildedges) { static int timer1 = NgProfiler::CreateTimer ("topology::buildedges"); - static int t1a = NgProfiler::CreateTimer ("topology - edges 1"); - static int t1b = NgProfiler::CreateTimer ("topology - edges 2"); - static int t1b1 = NgProfiler::CreateTimer ("topology - edges 21"); - static int t1b11 = NgProfiler::CreateTimer ("topology - edges 211"); - static int t1b2 = NgProfiler::CreateTimer ("topology - edges 22"); - static int t1b3 = NgProfiler::CreateTimer ("topology - edges 23"); - static int t1c = NgProfiler::CreateTimer ("topology - edges 3"); - - NgProfiler::RegionTimer reg1 (timer1); if (id == 0) PrintMessage (5, "Update edges "); - NgProfiler::StartTimer (t1a); - edges.SetSize(ne); surfedges.SetSize(nse); segedges.SetSize(nseg); @@ -220,9 +209,6 @@ namespace netgen ned = edge2vert.Size(); - NgProfiler::StopTimer (t1a); - NgProfiler::StartTimer (t1b); - for (int i = PointIndex::BASE; i < nv+PointIndex::BASE; i++) { vertex2.SetSize (0); @@ -245,8 +231,6 @@ namespace netgen } } - NgProfiler::StartTimer (t1b1); - FlatArray v2els = (*vert2element)[i]; for (int j = 0; j < v2els.Size(); j++) { @@ -267,8 +251,6 @@ namespace netgen } } - NgProfiler::StopTimer (t1b1); - for (int j = 0; j < (*vert2surfelement)[i].Size(); j++) { int elnr = (*vert2surfelement)[i][j]; @@ -307,8 +289,6 @@ namespace netgen } } - NgProfiler::StartTimer (t1b2); - QuickSort (vertex2); for (int j = 0; j < vertex2.Size(); j++) { @@ -316,9 +296,6 @@ namespace netgen edge2vert.Append (INDEX_2 (i, vertex2[j])); } - NgProfiler::StopTimer (t1b2); - NgProfiler::StartTimer (t1b3); - for (int j = 0; j < (*vert2element)[i].Size(); j++) { @@ -382,10 +359,7 @@ namespace netgen if (edgedir) edgenum *= -1; segedges.Elem(elnr) = edgenum; } - NgProfiler::StopTimer (t1b3); } - - NgProfiler::StopTimer (t1b); }