diff --git a/palace/utils/geodata.cpp b/palace/utils/geodata.cpp index 65f535e83..e7444e6d5 100644 --- a/palace/utils/geodata.cpp +++ b/palace/utils/geodata.cpp @@ -85,6 +85,7 @@ std::unique_ptr ReadMesh(MPI_Comm comm, const IoData &iodata) // If possible on root, read the serial mesh (converting format if necessary), and do all // necessary serial preprocessing. When finished, distribute the mesh to all processes. // Count disk I/O time separately for the mesh read from file. + BlockTimer bt0(Timer::MESH_PREPROCESS); // If not doing any local adaptation, or performing conformal adaptation, we can use the // mesh partitioner. @@ -118,7 +119,7 @@ std::unique_ptr ReadMesh(MPI_Comm comm, const IoData &iodata) // Only one process per node reads the serial mesh. { - BlockTimer bt(Timer::IO); + BlockTimer bt1(Timer::IO); if ((use_mesh_partitioner && Mpi::Root(comm)) || (!use_mesh_partitioner && Mpi::Root(node_comm))) { diff --git a/palace/utils/timer.hpp b/palace/utils/timer.hpp index f4cd9fa5f..d5304bc34 100644 --- a/palace/utils/timer.hpp +++ b/palace/utils/timer.hpp @@ -27,6 +27,7 @@ class Timer enum Index { INIT = 0, + MESH_PREPROCESS, // Preprocessing mesh CONSTRUCT, // Space and operator construction WAVE_PORT, // Wave port solver KSP, // Linear solver @@ -52,6 +53,7 @@ class Timer // clang-format off inline static const std::vector descriptions{ "Initialization", + " Mesh Preprocessing", "Operator Construction", " Wave Ports", "Linear Solve",