diff --git a/src/io/snap_io.cc b/src/io/snap_io.cc index bc1800eef769daef7f9141d78d8051f9a825ce60..030170f53ae7ef6abe0c0e74e73b2e3f06893de5 100644 --- a/src/io/snap_io.cc +++ b/src/io/snap_io.cc @@ -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, "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_H5Fclose(hdf5_file, fname); }