From 6520802b99fc545745d445f1ddd0ce655aa30a9b Mon Sep 17 00:00:00 2001 From: Shane Snyder Date: Mon, 8 Jun 2020 14:17:20 -0500 Subject: [PATCH] properly use runtime checks when not using MPI Fixes #281 --- darshan-runtime/lib/darshan-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/darshan-runtime/lib/darshan-core.c b/darshan-runtime/lib/darshan-core.c index 64fd803..9d35682 100644 --- a/darshan-runtime/lib/darshan-core.c +++ b/darshan-runtime/lib/darshan-core.c @@ -2036,7 +2036,8 @@ static void darshan_core_cleanup(struct darshan_core_runtime* core) #endif #ifdef HAVE_MPI - PMPI_Comm_free(&core->mpi_comm); + if(using_mpi) + PMPI_Comm_free(&core->mpi_comm); #endif if(core->comp_buf) -- GitLab