@@ -2471,25 +2471,33 @@ ERROR: Variable ')"[1] + varName +
24712471#if openPMD_HAVE_MPI
24722472
24732473ADIOS2IOHandler::ADIOS2IOHandler (
2474+ std::optional<std::unique_ptr<AbstractIOHandler>> initialize_from,
24742475 std::string path,
24752476 openPMD::Access at,
24762477 MPI_Comm comm,
24772478 json::TracingJSON options,
24782479 std::string engineType,
24792480 std::string specifiedExtension)
2480- : AbstractIOHandler(std::move(path), at, std::move(options), comm)
2481+ : AbstractIOHandler(
2482+ std::move (initialize_from),
2483+ std::move(path),
2484+ at,
2485+ std::move(options),
2486+ comm)
24812487 , m_impl{this , comm, std::move (engineType), std::move (specifiedExtension)}
24822488{}
24832489
24842490#endif
24852491
24862492ADIOS2IOHandler::ADIOS2IOHandler (
2493+ std::optional<std::unique_ptr<AbstractIOHandler>> initialize_from,
24872494 std::string path,
24882495 Access at,
24892496 json::TracingJSON options,
24902497 std::string engineType,
24912498 std::string specifiedExtension)
2492- : AbstractIOHandler(std::move(path), at, std::move(options))
2499+ : AbstractIOHandler(
2500+ std::move (initialize_from), std::move(path), at, std::move(options))
24932501 , m_impl{this , std::move (engineType), std::move (specifiedExtension)}
24942502{}
24952503
@@ -2503,6 +2511,7 @@ ADIOS2IOHandler::flush(internal::ParsedFlushParams &flushParams)
25032511
25042512#if openPMD_HAVE_MPI
25052513ADIOS2IOHandler::ADIOS2IOHandler (
2514+ std::optional<std::unique_ptr<AbstractIOHandler>> initialize_from,
25062515 std::string path,
25072516 Access at,
25082517 MPI_Comm comm,
@@ -2511,20 +2520,27 @@ ADIOS2IOHandler::ADIOS2IOHandler(
25112520 std::string,
25122521 // NOLINTNEXTLINE(performance-unnecessary-value-param)
25132522 std::string)
2514- : AbstractIOHandler(std::move(path), at, std::move(config), comm)
2523+ : AbstractIOHandler(
2524+ std::move (initialize_from),
2525+ std::move(path),
2526+ at,
2527+ std::move(config),
2528+ comm)
25152529{}
25162530
25172531#endif // openPMD_HAVE_MPI
25182532
25192533ADIOS2IOHandler::ADIOS2IOHandler (
2534+ std::optional<std::unique_ptr<AbstractIOHandler>> initialize_from,
25202535 std::string path,
25212536 Access at,
25222537 json::TracingJSON config,
25232538 // NOLINTNEXTLINE(performance-unnecessary-value-param)
25242539 std::string,
25252540 // NOLINTNEXTLINE(performance-unnecessary-value-param)
25262541 std::string)
2527- : AbstractIOHandler(std::move(path), at, std::move(config))
2542+ : AbstractIOHandler(
2543+ std::move (initialize_from), std::move(path), at, std::move(config))
25282544{}
25292545
25302546std::future<void > ADIOS2IOHandler::flush (internal::ParsedFlushParams &)
0 commit comments