diff --git a/src/hdf5.cpp b/src/hdf5.cpp index 7ee7a2ed05..7ab8274e0f 100644 --- a/src/hdf5.cpp +++ b/src/hdf5.cpp @@ -529,8 +529,7 @@ void writeReturnData( int_buffer[i] = static_cast(rdata.pscale[i]); createAndWriteInt1DDataset(file, hdf5Location + "/pscale", int_buffer); } - // crashes on macos? - //writeLogItemsToHDF5(file, rdata.messages, hdf5Location + "/messages"); + writeLogItemsToHDF5(file, rdata.messages, hdf5Location + "/messages"); writeReturnDataDiagnosis(rdata, file, hdf5Location + "/diagnosis"); } @@ -714,6 +713,8 @@ void writeLogItemsToHDF5( "severity", HOFFSET(amici::LogItem, severity), H5::PredType::NATIVE_INT ); + // crashes on macos? + /* logItemType.insertMember( "identifier", HOFFSET(amici::LogItem, identifier), H5::StrType(H5::PredType::C_S1, H5T_VARIABLE) @@ -722,7 +723,7 @@ void writeLogItemsToHDF5( "message", HOFFSET(amici::LogItem, message), H5::StrType(H5::PredType::C_S1, H5T_VARIABLE) ); - + */ H5::DataSet dataset = file.createDataSet(hdf5Location, logItemType, dataspace); dataset.write(logItems.data(), logItemType);