Skip to content

Commit

Permalink
do not enforce .h5 as file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
guj committed Sep 17, 2020
1 parent e227979 commit 5ce226f
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions source/adios2/engine/hdf5/HDF5WriterP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,18 @@ void HDF5WriterP::Init()
", in call to ADIOS Open or HDF5Writer constructor\n");
}

#ifdef NEVER
m_H5File.Init(m_Name, m_Comm, true);
#else
m_H5File.ParseParameters(m_IO);

if (m_OpenMode == Mode::Append)
{
m_H5File.Append(m_Name, m_Comm);
m_H5File.ReadAttrToIO(m_IO);
m_H5File.ReadAllVariables(m_IO);
}
else
m_H5File.Init(m_Name, m_Comm, true);

/*
// enforce .h5 ending
std::string suffix = ".h5";
std::string wrongSuffix = ".bp";
Expand Down Expand Up @@ -93,7 +102,7 @@ void HDF5WriterP::Init()
m_H5File.ReadAttrToIO(m_IO);
m_H5File.ReadAllVariables(m_IO);
}
#endif
*/
}

#define declare_type(T) \
Expand Down

0 comments on commit 5ce226f

Please sign in to comment.