From 0f210f8c59c7427a9408cda9b0f51fb3d89f7cf8 Mon Sep 17 00:00:00 2001 From: "Peter W. Draper" <p.w.draper@durham.ac.uk> Date: Thu, 11 May 2023 13:19:55 +0100 Subject: [PATCH] Fix up compilation issues --- swiftmpistepsim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swiftmpistepsim.c b/swiftmpistepsim.c index 318e634..d4625b4 100644 --- a/swiftmpistepsim.c +++ b/swiftmpistepsim.c @@ -53,7 +53,7 @@ static const int task_type_send = 25; static const int task_type_recv = 26; /* Global communicators for each of the subtypes. */ -static const int task_subtype_count = 34; // Just some upper limit on subtype. +#define task_subtype_count 34 // Just some upper limit on subtype. static MPI_Comm subtypeMPI_comms[task_subtype_count]; /* The local queues. */ @@ -538,7 +538,7 @@ int main(int argc, char *argv[]) { MPI_Barrier(MPI_COMM_WORLD); fflush(stdout); if (myrank == 0) message("Dumping updated log"); - mpiuse_dump_logs(nranks, logfile); + mpiuse_dump_logs(nranks, 0, logfile); /* Shutdown MPI. */ res = MPI_Finalize(); -- GitLab