Commit 6b515533 authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles

check hdf5 version

parent 06ef0ff5
......@@ -21,6 +21,7 @@
namespace uns {
// ----------------------------------------------------------------------------
// READING constructor
template <class T>
......@@ -941,30 +942,50 @@ bool CSnapshotGadgetH5Out<T>::saveCommonDataset(std::string comp,std::string tag
// catch failure caused by the H5File operations
catch( FileIException error )
{
#if H5_VERS_MINOR<8
error.printError();
#else
error.printErrorStack();
#endif
throw -1;
}
// catch failure caused by the DataSet operations
catch( DataSetIException error )
{
#if H5_VERS_MINOR<8
error.printError();
#else
error.printErrorStack();
#endif
throw -1;
}
// catch failure caused by the DataSpace operations
catch( DataSpaceIException error )
{
#if H5_VERS_MINOR<8
error.printError();
#else
error.printErrorStack();
#endif
throw -1;
}
// catch failure caused by the DataSpace operations
catch( DataTypeIException error )
{
#if H5_VERS_MINOR<8
error.printError();
#else
error.printErrorStack();
#endif
throw -1;
}
catch( GroupIException error )
{
error.printError();
#if H5_VERS_MINOR<8
error.printError();
#else
error.printErrorStack();
#endif
return -1;
}
catch (...) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment