Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/10_streaming_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int main()
// Iterations can be accessed independently from one another. This more
// restricted mode enables performance optimizations in the backends, and
// more importantly is compatible with streaming I/O.
Series series = Series("electrons.sst", Access::CREATE_LINEAR, R"(
Series series = Series("electrons.bp5", Access::CREATE_LINEAR, R"(
Comment thread
franzpoeschel marked this conversation as resolved.
Outdated
{
"adios2": {
"engine": {
Expand Down
3 changes: 3 additions & 0 deletions include/openPMD/IO/ADIOS/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
ADIOS2_VERSION_PATCH >= \
2101)

#define openPMD_HAS_ADIOS_2_12 \
(ADIOS2_VERSION_MAJOR * 100 + ADIOS2_VERSION_MINOR >= 212)

#if defined(ADIOS2_HAVE_BP5) || openPMD_HAS_ADIOS_2_10
// ADIOS2 v2.10 no longer defines this
#define openPMD_HAVE_ADIOS2_BP5 1
Expand Down
5 changes: 3 additions & 2 deletions src/IO/ADIOS/ADIOS2File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ void ADIOS2File::configure_IO()
std::to_string((uint64_t)MaxShmMB * (uint64_t)1048576));
}
#endif
constexpr int default_stats_level = openPMD_HAS_ADIOS_2_12;
if (notYetConfigured("StatsLevel"))
{
/*
Expand All @@ -726,8 +727,8 @@ void ADIOS2File::configure_IO()
* environment variable "OPENPMD_ADIOS2_STATS_LEVEL" be positive.
* The ADIOS2 default was "1" (on).
*/
auto stats_level =
auxiliary::getEnvNum("OPENPMD_ADIOS2_STATS_LEVEL", 0);
auto stats_level = auxiliary::getEnvNum(
"OPENPMD_ADIOS2_STATS_LEVEL", default_stats_level);
m_IO.SetParameter("StatsLevel", std::to_string(stats_level));
}
if (m_impl->realEngineType() == "sst" && notYetConfigured("QueueLimit"))
Expand Down
Loading