no testout in bisect

This commit is contained in:
Joachim Schöberl 2016-11-20 18:36:00 +01:00
parent 0d9980aa8d
commit 467d3a01be

View File

@ -1335,8 +1335,8 @@ namespace netgen
newtet2.incorder = 0;
newtet2.order = oldtet.order;
*testout << "newtet1 = " << newtet1 << endl;
*testout << "newtet2 = " << newtet2 << endl;
// *testout << "newtet1 = " << newtet1 << endl;
// *testout << "newtet2 = " << newtet2 << endl;
}
@ -2619,9 +2619,14 @@ namespace netgen
PushStatus("Mesh bisection");
static int timer = NgProfiler::CreateTimer ("Bisect");
static int timer1 = NgProfiler::CreateTimer ("Bisect 1");
static int timer2 = NgProfiler::CreateTimer ("Bisect 2");
static int timer3 = NgProfiler::CreateTimer ("Bisect 3");
static int timer_bisecttet = NgProfiler::CreateTimer ("Bisect tets");
static int timer_bisecttrig = NgProfiler::CreateTimer ("Bisect trigs");
NgProfiler::RegionTimer reg1 (timer);
NgProfiler::StartTimer (timer1);
static int localizetimer = NgProfiler::CreateTimer("localize edgepoints");
NgProfiler::RegionTimer * loct = new NgProfiler::RegionTimer(localizetimer);
@ -3164,11 +3169,13 @@ namespace netgen
//string yn;
//cin >> yn;
(*testout) << "refine volume elements" << endl;
NgProfiler::StopTimer (timer1);
(*testout) << "refine volume elements" << endl;
do
{
// refine volume elements
NgProfiler::StartTimer (timer_bisecttet);
int nel = mtets.Size();
for (int i = 1; i <= nel; i++)
if (mtets.Elem(i).marked)
@ -3209,7 +3216,7 @@ namespace netgen
mesh.mlparentelement.Append (i);
}
NgProfiler::StopTimer (timer_bisecttet);
int npr = mprisms.Size();
for (int i = 1; i <= npr; i++)
if (mprisms.Elem(i).marked)
@ -3311,7 +3318,7 @@ namespace netgen
int nsel = mtris.Size();
NgProfiler::StartTimer (timer_bisecttrig);
for (int i = 1; i <= nsel; i++)
if (mtris.Elem(i).marked)
{
@ -3455,6 +3462,7 @@ namespace netgen
mquads.Append (newquad2);
}
NgProfiler::StopTimer (timer_bisecttrig);
hangingsurf =
MarkHangingTris (mtris, cutedges) +
@ -3570,6 +3578,8 @@ namespace netgen
}
}
NgProfiler::StartTimer (timer2);
mtets.SetAllocSize (mtets.Size());
mprisms.SetAllocSize (mprisms.Size());
mids.SetAllocSize (mids.Size());
@ -3948,6 +3958,9 @@ namespace netgen
delete idmaps[i];
idmaps.DeleteAll();
NgProfiler::StopTimer (timer2);
NgProfiler::StartTimer (timer3);
mesh.UpdateTopology(opt.task_manager);
@ -3969,6 +3982,7 @@ namespace netgen
PrintMessage (1, "Bisection done");
PopStatus();
NgProfiler::StopTimer (timer3);
}