Skip to content

Commit

Permalink
auto select mhs engine if file has .tier0 suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRuonanWang committed Aug 27, 2021
1 parent 731f934 commit 4be12c9
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 4be12c9

Please sign in to comment.