From 4b6228e52c8184bc14e25132ce4abf3e30255d83 Mon Sep 17 00:00:00 2001 From: Thomas Hahn Date: Thu, 18 Apr 2024 18:48:07 -0400 Subject: [PATCH] Bug fix in h5::file ctor --- c++/h5/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c++/h5/file.cpp b/c++/h5/file.cpp index 1e5d5b2..7088dae 100644 --- a/c++/h5/file.cpp +++ b/c++/h5/file.cpp @@ -59,7 +59,7 @@ namespace h5 { break; } // create new file in read-write mode if the file does not exist yet - case 'e': id = H5Fopen(name, H5F_ACC_EXCL, H5P_DEFAULT); break; + case 'e': id = H5Fcreate(name, H5F_ACC_EXCL, H5P_DEFAULT, H5P_DEFAULT); break; default: throw std::runtime_error("File mode is not one of r, w, a, e"); }