Skip to content
Snippets Groups Projects
Commit 016924be authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Dump and restore the entropy floor structure in check-point files.

parent 66f6f2e5
No related branches found
No related tags found
2 merge requests!720Implement EAGLE-like entropy floor,!705Star formation following Schaye08
......@@ -5238,6 +5238,7 @@ void engine_struct_dump(struct engine *e, FILE *stream) {
phys_const_struct_dump(e->physical_constants, stream);
hydro_props_struct_dump(e->hydro_properties, stream);
entropy_floor_struct_dump(e->entropy_floor, stream);
gravity_props_struct_dump(e->gravity_properties, stream);
stars_props_struct_dump(e->stars_properties, stream);
pm_mesh_struct_dump(e->mesh, stream);
......@@ -5310,6 +5311,11 @@ void engine_struct_restore(struct engine *e, FILE *stream) {
hydro_props_struct_restore(hydro_properties, stream);
e->hydro_properties = hydro_properties;
struct entropy_floor_properties *entropy_floor =
(struct entropy_floor_properties *)malloc(sizeof(struct entropy_floor_properties));
entropy_floor_struct_restore(entropy_floor, stream);
e->entropy_floor = entropy_floor;
struct gravity_props *gravity_properties =
(struct gravity_props *)malloc(sizeof(struct gravity_props));
gravity_props_struct_restore(gravity_properties, stream);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment