From 0fefe5d32c44f54afcfd25e4ac879304dad5985e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Mon, 10 Aug 2020 16:44:14 +0200 Subject: [PATCH] timers in Netgen --- libsrc/meshing/meshclass.cpp | 1 + libsrc/meshing/paralleltop.cpp | 1 + libsrc/meshing/refine.cpp | 2 ++ 3 files changed, 4 insertions(+) diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index ea30e5f6..2eacb717 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -6420,6 +6420,7 @@ namespace netgen void Mesh :: UpdateTopology (TaskManager tm, Tracer tracer) { + static Timer t("Update Topology"); RegionTimer reg(t); topology.Update(tm, tracer); (*tracer)("call update clusters", false); clusters->Update(tm, tracer); diff --git a/libsrc/meshing/paralleltop.cpp b/libsrc/meshing/paralleltop.cpp index 3fba9f87..9e07fd73 100644 --- a/libsrc/meshing/paralleltop.cpp +++ b/libsrc/meshing/paralleltop.cpp @@ -207,6 +207,7 @@ namespace netgen void ParallelMeshTopology :: UpdateCoarseGrid () { + static Timer t("ParallelTopology::UpdateCoarseGrid"); RegionTimer r(t); // cout << "UpdateCoarseGrid" << endl; // if (is_updated) return; diff --git a/libsrc/meshing/refine.cpp b/libsrc/meshing/refine.cpp index bc4a2e5b..6f9e4585 100644 --- a/libsrc/meshing/refine.cpp +++ b/libsrc/meshing/refine.cpp @@ -15,7 +15,9 @@ namespace netgen { if (mesh.GetCommunicator().Rank()==0) PrintMessage (3, "Refine mesh"); + Timer t("Refine mesh"); RegionTimer reg(t); + mesh.SetNextMajorTimeStamp(); if (ntasks > 1 && id == 0)