From 97c15eb4038749b8ccfac6fa12e2b94a1ebca8aa Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Thu, 2 May 2024 13:41:18 -0600 Subject: [PATCH] SLICE: Make easier for sparc to spawn slice --- packages/seacas/applications/slice/Slice.C | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/seacas/applications/slice/Slice.C b/packages/seacas/applications/slice/Slice.C index ce92e300e64a..cbd1961c7bb7 100644 --- a/packages/seacas/applications/slice/Slice.C +++ b/packages/seacas/applications/slice/Slice.C @@ -408,6 +408,12 @@ int main(int argc, char *argv[]) } #ifdef SEACAS_HAVE_MPI + MPI_Comm parentcomm; + MPI_Comm_get_parent(&parentcomm); + if (parentcomm != MPI_COMM_NULL) { + int istatus = EXIT_SUCCESS; + MPI_Send(&istatus, 1, MPI_INT, 0, 0, parentcomm); + } MPI_Finalize(); #endif fmt::print(stderr, "\nHigh-Water Memory Use: {} bytes\n",