From cd1ac643d7462af430afb56a4bfbac6dde2f27cf Mon Sep 17 00:00:00 2001 From: Algiane Froehly Date: Thu, 31 Oct 2024 12:49:07 +0100 Subject: [PATCH] Fix issues with pure-partitioning option. --- cmake/testing/pmmg_tests.cmake | 2 ++ src/libparmmg.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/cmake/testing/pmmg_tests.cmake b/cmake/testing/pmmg_tests.cmake index 93d8b76f..cd637781 100644 --- a/cmake/testing/pmmg_tests.cmake +++ b/cmake/testing/pmmg_tests.cmake @@ -429,6 +429,7 @@ IF( BUILD_TESTING ) ${CI_DIR}/LevelSet/1p_cubegeom/3D-cube.mesh -ls -pure-partitioning + -distributed-output -sol ${CI_DIR}/LevelSet/1p_cubegeom/3D-cube-ls.sol -met ${CI_DIR}/LevelSet/1p_cubegeom/3D-cube-metric.sol -out ${CI_DIR_RESULTS}/PurePartitioning-CenIn-DisOut-withMetAndLs-2.o.mesh) @@ -447,6 +448,7 @@ IF( BUILD_TESTING ) ${CI_DIR}/LevelSet/1p_cubegeom/3D-cube.mesh -ls -pure-partitioning + -distributed-output -sol ${CI_DIR}/LevelSet/1p_cubegeom/3D-cube-ls.sol -out ${CI_DIR_RESULTS}/PurePartitioning-CenIn-DisOut-withLs-2.o.mesh) diff --git a/src/libparmmg.c b/src/libparmmg.c index fdf3d0f9..f7ce2c4f 100644 --- a/src/libparmmg.c +++ b/src/libparmmg.c @@ -1820,6 +1820,9 @@ int PMMG_parmmg_centralized(PMMG_pParMesh parmesh) { return ierlib; } } + else { + ierlib = 0; + } ier = PMMG_parmmglib_post(parmesh); ierlib = MG_MAX ( ier, ierlib );