Skip to content

Commit

Permalink
Merge pull request #2841 from JasonRuonanWang/mhs
Browse files Browse the repository at this point in the history
auto select mhs engine if file has .tier0 suffix
  • Loading branch information
JasonRuonanWang authored Aug 27, 2021
2 parents 688ca55 + 4be12c9 commit f166b0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions source/adios2/core/IO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion source/adios2/engine/mhs/MhsReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<compress::CompressSirius>(params);
io.SetEngine("");
m_SubIOs.emplace_back(&io);
Expand Down

0 comments on commit f166b0f

Please sign in to comment.