Commit 30474e59 authored by Matthieu Schaller's avatar Matthieu Schaller

Also update the function signatures in the unit tests

parent 096f317c
...@@ -52,18 +52,18 @@ int main(int argc, char *argv[]) { ...@@ -52,18 +52,18 @@ int main(int argc, char *argv[]) {
#endif #endif
/* Read data */ /* Read data */
read_ic_single("input.hdf5", &us, dim, &parts, &gparts, &sinks, &sparts, read_ic_single(
&bparts, &Ngas, &Ngpart, &Ngpart_background, &Nsink, &Nspart, "input.hdf5", &us, dim, &parts, &gparts, &sinks, &sparts, &bparts, &Ngas,
&Nbpart, &flag_entropy_ICs, &Ngpart, &Ngpart_background, &Nsink, &Nspart, &Nbpart, &flag_entropy_ICs,
/*with_hydro=*/1, /*with_hydro=*/1,
/*with_gravity=*/1, /*with_gravity=*/1,
/*with_sink=*/0, /*with_sink=*/0,
/*with_stars=*/0, /*with_stars=*/0,
/*with_black_holes=*/0, /*with_black_holes=*/0,
/*with_cosmology=*/0, /*with_cosmology=*/0,
/*cleanup_h=*/0, /*cleanup_h=*/0,
/*cleanup_sqrt_a=*/0, /*cleanup_sqrt_a=*/0,
/*h=*/1., /*a=*/1., /*n_threads=*/1, /*dry_run=*/0); /*h=*/1., /*a=*/1., /*n_threads=*/1, /*dry_run=*/0, /*remap_ids=*/0);
/* Check global properties read are correct */ /* Check global properties read are correct */
assert(dim[0] == boxSize); assert(dim[0] == boxSize);
......
...@@ -118,18 +118,18 @@ int main(int argc, char *argv[]) { ...@@ -118,18 +118,18 @@ int main(int argc, char *argv[]) {
/* Read data */ /* Read data */
message("Reading initial conditions."); message("Reading initial conditions.");
read_ic_single("input.hdf5", &us, dim, &parts, &gparts, &sinks, &sparts, read_ic_single(
&bparts, &Ngas, &Ngpart, &Ngpart_background, &Nsink, &Nspart, "input.hdf5", &us, dim, &parts, &gparts, &sinks, &sparts, &bparts, &Ngas,
&Nbpart, &flag_entropy_ICs, &Ngpart, &Ngpart_background, &Nsink, &Nspart, &Nbpart, &flag_entropy_ICs,
/*with_hydro=*/1, /*with_hydro=*/1,
/*with_gravity=*/0, /*with_gravity=*/0,
/*with_sink=*/0, /*with_sink=*/0,
/*with_stars=*/0, /*with_stars=*/0,
/*with_black_holes=*/0, /*with_black_holes=*/0,
/*with_cosmology=*/0, /*with_cosmology=*/0,
/*cleanup_h=*/0, /*cleanup_h=*/0,
/*cleanup_sqrt_a=*/0, /*cleanup_sqrt_a=*/0,
/*h=*/1., /*a=*/1., /*n_threads=*/1, /*dry_run=*/0); /*h=*/1., /*a=*/1., /*n_threads=*/1, /*dry_run=*/0, /*remap_ids=*/0);
/* pseudo initialization of the space */ /* pseudo initialization of the space */
message("Initialization of the space."); message("Initialization of the space.");
......
Markdown is supported
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