Skip to content

Commit

Permalink
Guard against non-ADIOS2 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Dec 21, 2023
1 parent e4cac3c commit e4b6dee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions include/openPMD/IO/ADIOS/ADIOS2File.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
#include "openPMD/IO/ADIOS/ADIOS2Auxiliary.hpp"
#include "openPMD/IO/AbstractIOHandler.hpp"
#include "openPMD/IO/IOTask.hpp"

#include <functional>
#include <string>

#include "openPMD/IO/InvalidatableFile.hpp"
#include "openPMD/config.hpp"

Expand All @@ -37,11 +33,15 @@
#include <mpi.h>
#endif

#include <functional>
#include <string>

namespace openPMD
{
class ADIOS2IOHandlerImpl;
}

#if openPMD_HAVE_ADIOS2
namespace openPMD::detail
{
class BufferedActions;
Expand Down Expand Up @@ -486,3 +486,4 @@ void BufferedActions::flush(Args &&...args)
}
}
} // namespace openPMD::detail
#endif
3 changes: 2 additions & 1 deletion src/IO/ADIOS/ADIOS2File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
throw std::runtime_error((TEXT)); \
}

#if openPMD_HAVE_ADIOS2
namespace openPMD::detail
{
template <typename T>
Expand Down Expand Up @@ -1306,5 +1307,5 @@ void BufferedActions::markActive(Writable *writable)
break;
}
}

} // namespace openPMD::detail
#endif

0 comments on commit e4b6dee

Please sign in to comment.