timers in Netgen

This commit is contained in:
Joachim Schöberl 2020-08-10 16:44:14 +02:00
parent 72447a51d5
commit 0fefe5d32c
3 changed files with 4 additions and 0 deletions

View File

@ -6420,6 +6420,7 @@ namespace netgen
void Mesh :: UpdateTopology (TaskManager tm, void Mesh :: UpdateTopology (TaskManager tm,
Tracer tracer) Tracer tracer)
{ {
static Timer t("Update Topology"); RegionTimer reg(t);
topology.Update(tm, tracer); topology.Update(tm, tracer);
(*tracer)("call update clusters", false); (*tracer)("call update clusters", false);
clusters->Update(tm, tracer); clusters->Update(tm, tracer);

View File

@ -207,6 +207,7 @@ namespace netgen
void ParallelMeshTopology :: UpdateCoarseGrid () void ParallelMeshTopology :: UpdateCoarseGrid ()
{ {
static Timer t("ParallelTopology::UpdateCoarseGrid"); RegionTimer r(t);
// cout << "UpdateCoarseGrid" << endl; // cout << "UpdateCoarseGrid" << endl;
// if (is_updated) return; // if (is_updated) return;

View File

@ -15,7 +15,9 @@ namespace netgen
{ {
if (mesh.GetCommunicator().Rank()==0) if (mesh.GetCommunicator().Rank()==0)
PrintMessage (3, "Refine mesh"); PrintMessage (3, "Refine mesh");
Timer t("Refine mesh"); RegionTimer reg(t);
mesh.SetNextMajorTimeStamp(); mesh.SetNextMajorTimeStamp();
if (ntasks > 1 && id == 0) if (ntasks > 1 && id == 0)