Skip to content
Snippets Groups Projects
Commit 2de3c6a6 authored by Volker Springel's avatar Volker Springel
Browse files

fixed reading in of LptScalingfactor when SECOND_ORDER_LPT_ICS option is used...

fixed reading in of LptScalingfactor when SECOND_ORDER_LPT_ICS option is used combined with HDF5 input format
parent 1c01f710
No related branches found
No related tags found
No related merge requests found
...@@ -954,6 +954,10 @@ void snap_io::read_header_fields(const char *fname) ...@@ -954,6 +954,10 @@ void snap_io::read_header_fields(const char *fname)
read_scalar_attribute(handle, "BoxSize", &header.BoxSize, H5T_NATIVE_DOUBLE); read_scalar_attribute(handle, "BoxSize", &header.BoxSize, H5T_NATIVE_DOUBLE);
read_scalar_attribute(handle, "NumFilesPerSnapshot", &header.num_files, H5T_NATIVE_INT); read_scalar_attribute(handle, "NumFilesPerSnapshot", &header.num_files, H5T_NATIVE_INT);
#if defined(GADGET2_HEADER) && defined(SECOND_ORDER_LPT_ICS)
read_scalar_attribute(handle, "LptScalingfactor", &header.lpt_scalingfactor, H5T_NATIVE_FLOAT);
#endif
my_H5Gclose(handle, "/Header"); my_H5Gclose(handle, "/Header");
my_H5Fclose(hdf5_file, fname); my_H5Fclose(hdf5_file, fname);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment