You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It seems that querying availableChunks early in a HDF5 file during read causes an issue with opening logic.
To Reproduce
#include<openPMD/openPMD.hpp>
#include<iostream>using std::cout;
usingnamespaceopenPMD;intmain()
{
Series s = Series(
"../samples/git-sample/data%T.h5",
Access::READ_ONLY
);
auto electrons = s.iterations[400].particles["electrons"];
for( auto & r : electrons )
{
cout << r.first << ": ";
for( auto & r_c : r.second )
{
cout << r_c.first << "\n";
if( !r_c.second.constant() )
auto chunks = r_c.second.availableChunks();
}
}
return0;
}
charge:
Scalar
mass:
Scalar
momentum: x
terminate called after throwing an instance of 'std::runtime_error'
what(): [HDF5] File ID not found with file name
Aborted (core dumped)
Describe the bug
It seems that querying
availableChunks
early in a HDF5 file during read causes an issue with opening logic.To Reproduce
openPMD-api/src/IO/HDF5/HDF5IOHandler.cpp
Lines 399 to 401 in 6fd3936
The value of
fname->second
is../samples/git-sample/data00000400.h5
.The elements in
m_fileNamesWithID.size()
are0
.Expected behavior
This works with ADIOS2, so I think it's a backend bug for HDF5.
Software Environment
dev
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: