Skip to content

Commit

Permalink
Merge pull request #1560 from pnorbert/default-engine-bpfile
Browse files Browse the repository at this point in the history
Default engine is BPFile, i.e. as of today, for writing it is always …
  • Loading branch information
Chuck Atkins authored Jun 27, 2019
2 parents 9e4930f + 43988c0 commit 277386f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/adios2/core/IO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ Engine &IO::Open(const std::string &name, const Mode mode,

/* BPFile for read needs to use BP4 or BP3 depending on the file's version
*/
if ((engineTypeLC == "bpfile" || engineTypeLC == "bp"))
if ((engineTypeLC == "bpfile" || engineTypeLC == "bp" || isDefaultEngine))
{
if (mode == Mode::Read)
{
Expand All @@ -482,7 +482,7 @@ Engine &IO::Open(const std::string &name, const Mode mode,
}
}

if (isDefaultEngine || engineTypeLC == "bp3")
if (engineTypeLC == "bp3")
{
if (mode == Mode::Read)
{
Expand Down

0 comments on commit 277386f

Please sign in to comment.