3030#include " openPMD/IterationEncoding.hpp"
3131#include " openPMD/auxiliary/Environment.hpp"
3232#include " openPMD/auxiliary/Filesystem.hpp"
33+ #include " openPMD/auxiliary/JSONMatcher.hpp"
3334#include " openPMD/auxiliary/Mpi.hpp"
3435#include " openPMD/auxiliary/StringManip.hpp"
3536#include " openPMD/auxiliary/TypeTraits.hpp"
@@ -85,7 +86,6 @@ std::optional<size_t> joinedDimension(adios2::Dims const &dims)
8586ADIOS2IOHandlerImpl::ADIOS2IOHandlerImpl (
8687 AbstractIOHandler *handler,
8788 MPI_Comm communicator,
88- json::TracingJSON cfg,
8989 std::string engineType,
9090 std::string specifiedExtension)
9191 : AbstractIOHandlerImplCommon(handler)
@@ -95,7 +95,7 @@ ADIOS2IOHandlerImpl::ADIOS2IOHandlerImpl(
9595 , m_userSpecifiedExtension{std::move (specifiedExtension)}
9696{
9797 init (
98- std::move (cfg ),
98+ handler-> jsonMatcher -> getDefault ( ),
9999 /* callbackWriteAttributesFromRank = */
100100 [communicator, this ](nlohmann::json const &attribute_writing_ranks) {
101101 int rank = 0 ;
@@ -137,15 +137,14 @@ ADIOS2IOHandlerImpl::ADIOS2IOHandlerImpl(
137137
138138ADIOS2IOHandlerImpl::ADIOS2IOHandlerImpl (
139139 AbstractIOHandler *handler,
140- json::TracingJSON cfg,
141140 std::string engineType,
142141 std::string specifiedExtension)
143142 : AbstractIOHandlerImplCommon(handler)
144143 , m_ADIOS{}
145144 , m_engineType(std::move(engineType))
146145 , m_userSpecifiedExtension(std::move(specifiedExtension))
147146{
148- init (std::move (cfg ), [](auto const &...) {});
147+ init (handler-> jsonMatcher -> getDefault ( ), [](auto const &...) {});
149148}
150149
151150ADIOS2IOHandlerImpl::~ADIOS2IOHandlerImpl ()
@@ -2076,13 +2075,8 @@ ADIOS2IOHandler::ADIOS2IOHandler(
20762075 json::TracingJSON options,
20772076 std::string engineType,
20782077 std::string specifiedExtension)
2079- : AbstractIOHandler(std::move(path), at, comm)
2080- , m_impl{
2081- this ,
2082- comm,
2083- std::move (options),
2084- std::move (engineType),
2085- std::move (specifiedExtension)}
2078+ : AbstractIOHandler(std::move(path), at, std::move(options), comm)
2079+ , m_impl{this , comm, std::move (engineType), std::move (specifiedExtension)}
20862080{}
20872081
20882082#endif
@@ -2093,12 +2087,8 @@ ADIOS2IOHandler::ADIOS2IOHandler(
20932087 json::TracingJSON options,
20942088 std::string engineType,
20952089 std::string specifiedExtension)
2096- : AbstractIOHandler(std::move(path), at)
2097- , m_impl{
2098- this ,
2099- std::move (options),
2100- std::move (engineType),
2101- std::move (specifiedExtension)}
2090+ : AbstractIOHandler(std::move(path), at, std::move(options))
2091+ , m_impl{this , std::move (engineType), std::move (specifiedExtension)}
21022092{}
21032093
21042094std::future<void >
0 commit comments