From 217d92496eac26b6fd05206f12e3d587dc933de5 Mon Sep 17 00:00:00 2001 From: Chris Richardson Date: Mon, 2 Mar 2026 22:15:44 +0000 Subject: [PATCH 1/3] update --- src/mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh.cpp b/src/mesh.cpp index 2bf140e..aa03d0c 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -180,7 +180,7 @@ create_cube_mesh(MPI_Comm comm, std::size_t target_dofs, bool target_dofs_total, MPI_Comm_dup(comm, &sub_comm); auto cell_part = dolfinx::mesh::create_cell_partitioner( - dolfinx::mesh::GhostMode::none, graph_part); + dolfinx::mesh::GhostMode::none, graph_part, 2); auto mesh = dolfinx::mesh::create_box( comm, sub_comm, {{{0.0, 0.0, 0.0}, {1.0, 1.0, 1.0}}}, {Nx, Ny, Nz}, dolfinx::mesh::CellType::tetrahedron, cell_part); From b774da5a2e162937c8b30aa4c74f6f831ab6facc Mon Sep 17 00:00:00 2001 From: Chris Richardson Date: Wed, 4 Mar 2026 14:33:06 +0000 Subject: [PATCH 2/3] Fix for cell_partitioner --- src/mesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesh.cpp b/src/mesh.cpp index aa03d0c..44f5dcf 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -179,8 +179,8 @@ create_cube_mesh(MPI_Comm comm, std::size_t target_dofs, bool target_dofs_total, else MPI_Comm_dup(comm, &sub_comm); - auto cell_part = dolfinx::mesh::create_cell_partitioner( - dolfinx::mesh::GhostMode::none, graph_part, 2); + auto cell_part = dolfinx::mesh::create_cell_partitioner(dolfinx::mesh::GhostMode::none, + graph_part, 2); auto mesh = dolfinx::mesh::create_box( comm, sub_comm, {{{0.0, 0.0, 0.0}, {1.0, 1.0, 1.0}}}, {Nx, Ny, Nz}, dolfinx::mesh::CellType::tetrahedron, cell_part); From fe806be12b2fe7dc0ed6051ac5a3932e4f710ab9 Mon Sep 17 00:00:00 2001 From: Chris Richardson Date: Wed, 4 Mar 2026 14:39:25 +0000 Subject: [PATCH 3/3] Adjust logging --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6d25f02..b507d12 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -263,8 +263,10 @@ int main(int argc, char* argv[]) std::string thread_name = "RANK: " + std::to_string(mpi_rank); std::string fmt = "[%Y-%m-%d %H:%M:%S.%e] [" + thread_name + "] [%l] %v"; spdlog::set_pattern(fmt); - if (mpi_rank == 0) - spdlog::set_level(spdlog::level::info); + + // Turn off logging except on rank 0, if set (e.g. use SPDLOG_LEVEL=info in CLI) + if (mpi_rank != 0) + spdlog::set_level(spdlog::level::err); solve(argc, argv);