diff --git a/src/config.h.cmake.in b/src/config.h.cmake.in index d469412404..b80b93bc99 100644 --- a/src/config.h.cmake.in +++ b/src/config.h.cmake.in @@ -18,7 +18,7 @@ #define QMCPACK_VERSION_PATCH @qmcpack_VERSION_PATCH@ /* define the release version */ -#cmakedefine QMCPACK_RELEASE @QMCAPCK_RELEASE@ +#cmakedefine QMCPACK_RELEASE @QMCPACK_RELEASE@ /* define the git last commit date */ // #cmakedefine QMCPLUSPLUS_LAST_CHANGED_DATE "@QMCPLUSPLUS_LAST_CHANGED_DATE@" diff --git a/src/io/hdf/hdf_archive.cpp b/src/io/hdf/hdf_archive.cpp index c645236708..1db1e4ceb8 100644 --- a/src/io/hdf/hdf_archive.cpp +++ b/src/io/hdf/hdf_archive.cpp @@ -148,7 +148,7 @@ bool hdf_archive::create(const std::filesystem::path& fname, unsigned flags) if (!(Mode[IS_PARALLEL] || Mode[IS_MASTER])) throw std::runtime_error("Only create file in parallel or by master but not every rank!"); close(); - file_id = H5Fcreate(fname.c_str(), H5F_ACC_TRUNC, H5P_DEFAULT, access_id); + file_id = H5Fcreate(fname.c_str(), flags, H5P_DEFAULT, access_id); return file_id != is_closed; }