From b33199cce3388b01cb8ceedd4ca146271e34fe18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Fri, 20 Oct 2023 15:02:14 +0200 Subject: [PATCH] ADIOS2 < v2.9 compatibility in tests --- test/ParallelIOTest.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/ParallelIOTest.cpp b/test/ParallelIOTest.cpp index 9b315e69a6..99318ddf6a 100644 --- a/test/ParallelIOTest.cpp +++ b/test/ParallelIOTest.cpp @@ -1,6 +1,7 @@ /* Running this test in parallel with MPI requires MPI::Init. * To guarantee a correct call to Init, launch the tests manually. */ +#include "openPMD/IO/ADIOS/macros.hpp" #include "openPMD/auxiliary/Environment.hpp" #include "openPMD/auxiliary/Filesystem.hpp" #include "openPMD/openPMD.hpp" @@ -1171,12 +1172,16 @@ clevel = "1" doshuffle = "BLOSC_BITSHUFFLE" )END"; - std::string writeConfigBP4 = R"END( + std::string writeConfigBP4 = + R"END( [adios2] unused = "parameter" attribute_writing_ranks = 0 -use_group_table = true - +)END" +#if openPMD_HAS_ADIOS_2_9 + "use_group_table = true" +#endif + R"END( [adios2.engine] type = "bp4" unused = "as well"