diff --git a/source/adios2/core/IO.cpp b/source/adios2/core/IO.cpp index b0c87b4a5e..7255dc657d 100644 --- a/source/adios2/core/IO.cpp +++ b/source/adios2/core/IO.cpp @@ -574,6 +574,10 @@ Engine &IO::Open(const std::string &name, const Mode mode, helper::Comm comm) engineTypeLC = "bp"; engineTypeLC.push_back(v); } + else if (adios2sys::SystemTools::FileIsDirectory(name + ".tier0")) + { + engineTypeLC = "mhs"; + } else { if (helper::EndsWith(name, ".bp", false)) diff --git a/source/adios2/engine/mhs/MhsReader.cpp b/source/adios2/engine/mhs/MhsReader.cpp index dbea352876..996fbd4fa1 100644 --- a/source/adios2/engine/mhs/MhsReader.cpp +++ b/source/adios2/engine/mhs/MhsReader.cpp @@ -22,7 +22,7 @@ MhsReader::MhsReader(IO &io, const std::string &name, const Mode mode, : Engine("MhsReader", io, name, mode, std::move(comm)) { helper::GetParameter(io.m_Parameters, "Tiers", m_Tiers); - Params params = {{"tiers", std::to_string(m_Tiers)}}; + Params params = {{"Tiers", std::to_string(m_Tiers)}}; m_SiriusCompressor = std::make_shared(params); io.SetEngine(""); m_SubIOs.emplace_back(&io);