From 9115e7c78bb8308e5f2e5513981691b55715c75b Mon Sep 17 00:00:00 2001 From: "Peter W. Draper" <p.w.draper@durham.ac.uk> Date: Mon, 18 Dec 2017 18:37:48 +0000 Subject: [PATCH] Sort out so that can still compile with only METIS --- src/debug.c | 2 +- src/debug.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c index 8675355ca3..f63ed557d9 100644 --- a/src/debug.c +++ b/src/debug.c @@ -393,7 +393,7 @@ void dumpCells(const char *prefix, int active, int mpiactive, int pactive, fclose(file); } -#ifdef HAVE_METIS +#if defined(WITH_MPI) && defined(HAVE_METIS) /** * @brief Dump the METIS graph in standard format, simple format and weights diff --git a/src/debug.h b/src/debug.h index 2cff37fa6f..5a64694820 100644 --- a/src/debug.h +++ b/src/debug.h @@ -39,7 +39,7 @@ int checkCellhdxmax(const struct cell *c, int *depth); void dumpCells(const char *prefix, int active, int mpiactive, int pactive, struct space *s, int rank, int step); -#ifdef HAVE_METIS +#if defined(WITH_MPI) && defined(HAVE_METIS) #include "metis.h" void dumpMETISGraph(const char *prefix, idx_t nvtxs, idx_t ncon, idx_t *xadj, idx_t *adjncy, idx_t *vwgt, idx_t *vsize, idx_t *adjwgt); -- GitLab