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
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment