1
0
Fork 0
mirror of https://github.com/cosmo-sims/MUSIC.git synced 2024-09-19 17:03:46 +02:00

fixed some compiler warnings

This commit is contained in:
Oliver Hahn 2023-02-03 11:34:57 -08:00
parent 1846b314ac
commit e912f944fc

View file

@ -191,7 +191,7 @@ inline void HDFReadDataset( const std::string Filename, const std::string ObjNam
int ndims = H5Sget_simple_extent_ndims( HDF_DataspaceID );
hsize_t dimsize[ndims];
hsize_t *dimsize = new hsize_t[ndims];
H5Sget_simple_extent_dims( HDF_DataspaceID, dimsize, NULL );
@ -220,6 +220,7 @@ inline void HDFReadDataset( const std::string Filename, const std::string ObjNam
H5Sclose( HDF_DataspaceID );
H5Dclose( HDF_DatasetID );
H5Fclose( HDF_FileID );
delete[] dimsize;
}
template<typename T >
@ -321,7 +322,7 @@ inline void HDFReadVectorSelect( const std::string Filename, const std::string O
//... get space associated with dataset and its extensions
HDF_DataspaceID = H5Dget_space( HDF_DatasetID );
int ndims = H5Sget_simple_extent_ndims( HDF_DataspaceID );
hsize_t dimsize[ndims];
hsize_t *dimsize = new hsize_t[ndims];
H5Sget_simple_extent_dims( HDF_DataspaceID, dimsize, NULL );
hsize_t block[2];
@ -372,7 +373,7 @@ inline void HDFReadVectorSelect( const std::string Filename, const std::string O
H5Sclose( HDF_MemspaceID );
H5Dclose( HDF_DatasetID );
H5Fclose( HDF_FileID );
delete[] dimsize;
}
template< typename T >
@ -599,7 +600,7 @@ inline void HDFReadGroupAttribute( const std::string Filename, const std::string
int ndims = H5Sget_simple_extent_ndims( HDF_DataspaceID );
hsize_t dimsize[ndims];
hsize_t *dimsize = new hsize_t[ndims];
H5Sget_simple_extent_dims( HDF_DataspaceID, dimsize, NULL );
@ -621,6 +622,7 @@ inline void HDFReadGroupAttribute( const std::string Filename, const std::string
H5Sclose( HDF_DataspaceID );
H5Gclose( HDF_GroupID );
H5Fclose( HDF_FileID );
delete[] dimsize;
}
template< typename T >