diff --git a/examples/EAGLE_low_z/EAGLE_6/run.sh b/examples/EAGLE_low_z/EAGLE_6/run.sh index 9786d8062e12a8292f1967e122bb1f8b94354074..aec7449e2dbec7f5aadc5e075fd1f75a31da5d83 100755 --- a/examples/EAGLE_low_z/EAGLE_6/run.sh +++ b/examples/EAGLE_low_z/EAGLE_6/run.sh @@ -7,5 +7,7 @@ then ./getIC.sh fi -../../swift --hydro --threads=4 -n 16 -y 1 eagle_6.yml 2>&1 | tee output.log +../../swift --hydro --threads=4 -n 16 -y 1 eagle_6.yml \ + -PInitialConditions:metadata_group_name:NoRuntimePars \ + | tee output.log diff --git a/examples/main_fof.c b/examples/main_fof.c index 8dde88f523a61d98294f26c279f28c819156f77a..5d9b42bb4e32a221cd36d32bc1ccf2482676771f 100644 --- a/examples/main_fof.c +++ b/examples/main_fof.c @@ -98,6 +98,7 @@ int main(int argc, char *argv[]) { struct sink *sinks = NULL; struct bpart *bparts = NULL; struct unit_system us; + struct ic_info ics_metadata; int nr_nodes = 1, myrank = 0; @@ -457,6 +458,9 @@ int main(int argc, char *argv[]) { size_t Nsink = 0, Nspart = 0, Nbpart = 0; double dim[3] = {0., 0., 0.}; + /* Prepare struct to store metadata from ICs */ + ic_info_init(&ics_metadata, params); + if (myrank == 0) clocks_gettime(&tic); #if defined(HAVE_HDF5) #if defined(WITH_MPI) @@ -467,7 +471,7 @@ int main(int argc, char *argv[]) { /*with_grav=*/1, with_sinks, with_stars, with_black_holes, with_cosmology, cleanup_h, cleanup_sqrt_a, cosmo.h, cosmo.a, myrank, nr_nodes, MPI_COMM_WORLD, MPI_INFO_NULL, nr_threads, - /*dry_run=*/0, /*remap_ids=*/0); + /*dry_run=*/0, /*remap_ids=*/0, &ics_metadata); #else read_ic_serial(ICfileName, &us, dim, &parts, &gparts, &sinks, &sparts, &bparts, &Ngas, &Ngpart, &Ngpart_background, &Nnupart, &Nsink, @@ -475,7 +479,7 @@ int main(int argc, char *argv[]) { /*with_grav=*/1, with_sinks, with_stars, with_black_holes, with_cosmology, cleanup_h, cleanup_sqrt_a, cosmo.h, cosmo.a, myrank, nr_nodes, MPI_COMM_WORLD, MPI_INFO_NULL, nr_threads, - /*dry_run=*/0, /*remap_ids=*/0); + /*dry_run=*/0, /*remap_ids=*/0, &ics_metadata); #endif #else read_ic_single(ICfileName, &us, dim, &parts, &gparts, &sinks, &sparts, @@ -483,7 +487,7 @@ int main(int argc, char *argv[]) { &Nspart, &Nbpart, &flag_entropy_ICs, with_hydro, /*with_grav=*/1, with_sinks, with_stars, with_black_holes, with_cosmology, cleanup_h, cleanup_sqrt_a, cosmo.h, cosmo.a, - nr_threads, /*dry_run=*/0, /*remap_ids=*/0); + nr_threads, /*dry_run=*/0, /*remap_ids=*/0, &ics_metadata); #endif #endif if (myrank == 0) { @@ -645,7 +649,7 @@ int main(int argc, char *argv[]) { /*feedback_properties=*/NULL, /*rt_properties=*/NULL, &mesh, /*potential=*/NULL, /*cooling_func=*/NULL, /*starform=*/NULL, /*chemistry=*/NULL, - &fof_properties, /*los_properties=*/NULL); + &fof_properties, /*los_properties=*/NULL, &ics_metadata); engine_config(/*restart=*/0, /*fof=*/1, &e, params, nr_nodes, myrank, nr_threads, nr_threads, with_aff, talking, NULL);