diff --git a/src/aux/MPIConvenience.cpp b/src/aux/MPIConvenience.cpp index 168a650..f1d32a7 100644 --- a/src/aux/MPIConvenience.cpp +++ b/src/aux/MPIConvenience.cpp @@ -43,8 +43,6 @@ void sparseAlltoallv(const void* sendbuf, const std::size_t* sendsize, const std const std::size_t* recvdisp, MPI_Datatype recvtype, MPI_Comm comm) { int commsize; int commrank; - int sendtypesizePre; - int recvtypesizePre; MPI_Comm_size(comm, &commsize); MPI_Comm_rank(comm, &commrank); diff --git a/src/pumgen.cpp b/src/pumgen.cpp index b61c360..654edca 100644 --- a/src/pumgen.cpp +++ b/src/pumgen.cpp @@ -448,10 +448,11 @@ int main(int argc, char* argv[]) { hid_t attrSpace = checkH5Err(H5Screate(H5S_SCALAR)); hid_t attrType = checkH5Err(H5Tcopy(H5T_C_S1)); - checkH5Err(H5Tset_size(attrType, boundaryFormatAttr.size() + 1)); + checkH5Err(H5Tset_size(attrType, H5T_VARIABLE)); hid_t attrBoundary = checkH5Err( H5Acreate(h5file, "boundary-format", attrType, attrSpace, H5P_DEFAULT, H5P_DEFAULT)); - checkH5Err(H5Awrite(attrBoundary, attrType, boundaryFormatAttr.data())); + void* stringData = boundaryFormatAttr.data(); + checkH5Err(H5Awrite(attrBoundary, attrType, &stringData)); checkH5Err(H5Aclose(attrBoundary)); checkH5Err(H5Sclose(attrSpace)); checkH5Err(H5Tclose(attrType));