-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move ADIOS2 version macros to their own header
- Loading branch information
1 parent
6c3d75b
commit 07a32cd
Showing
4 changed files
with
55 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include "openPMD/config.hpp" | ||
|
||
#if openPMD_HAVE_ADIOS2 | ||
|
||
#include <adios2.h> | ||
|
||
/* | ||
* ADIOS2 v2.8 brings mode::ReadRandomAccess | ||
*/ | ||
#define openPMD_HAS_ADIOS_2_8 \ | ||
(ADIOS2_VERSION_MAJOR * 100 + ADIOS2_VERSION_MINOR >= 208) | ||
/* | ||
* ADIOS2 v2.9 brings modifiable attributes (technically already in v2.8, but | ||
* there are too many bugs, so we only support it beginning with v2.9). | ||
* Group table feature requires ADIOS2 v2.9. | ||
*/ | ||
#define openPMD_HAS_ADIOS_2_9 \ | ||
(ADIOS2_VERSION_MAJOR * 100 + ADIOS2_VERSION_MINOR >= 209) | ||
|
||
#else | ||
|
||
#define openPMD_HAS_ADIOS_2_8 0 | ||
#define openPMD_HAS_ADIOS_2_9 0 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters