Skip to content

Commit 9701449

Browse files
committed
fix nompi builds
1 parent cf6f5bb commit 9701449

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

test/ParallelIOTest.cpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@
3636
#include <catch2/catch_test_macros.hpp>
3737
#include <catch2/matchers/catch_matchers_string.hpp>
3838

39+
#if !openPMD_HAVE_MPI
40+
#define PARALLEL_TEST_CASE(name, tags) TEST_CASE(#name, tags)
41+
42+
PARALLEL_TEST_CASE(none, "[parallel]")
43+
{}
44+
45+
#else
46+
47+
#include <mpi.h>
48+
3949
#define PARALLEL_TEST_CASE(name, tags) \
4050
static void openPMD_parallel_##name(); \
4151
TEST_CASE(#name, tags) \
@@ -53,14 +63,6 @@
5363
} \
5464
static void openPMD_parallel_##name()
5565

56-
#if !openPMD_HAVE_MPI
57-
TEST_CASE("none", "[parallel]")
58-
{}
59-
60-
#else
61-
62-
#include <mpi.h>
63-
6466
#if openPMD_HAVE_ADIOS2
6567
#include <adios2.h>
6668
#define HAS_ADIOS_2_8 (ADIOS2_VERSION_MAJOR * 100 + ADIOS2_VERSION_MINOR >= 208)

0 commit comments

Comments
 (0)