Commit 86db9055 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Document the new function in space.c

parent 924eb20f
......@@ -511,8 +511,7 @@ int main(int argc, char *argv[]) {
space_init(&s, params, &cosmo, dim, parts, gparts, sparts, bparts, Ngas,
Ngpart, Nspart, Nbpart, periodic, replicate,
/*generate_gas_in_ics=*/0, /*hydro=*/N_total[0] > 0, /*gravity=*/1,
/*with_star_formation=*/0, with_DM_background_particles,
/*with_dithering=*/0, /*dithering_ratio=*/0., talking,
/*with_star_formation=*/0, with_DM_background_particles, talking,
/*dry_run=*/0);
if (myrank == 0) {
......
......@@ -1141,6 +1141,13 @@ void space_allocate_extras(struct space *s, int verbose) {
free(local_cells);
}
/**
* @brief Compute a new dithering vector to apply to all the particles
* in the simulation.
*
* @param s The #space.
* @param verbose Are we talkative?
*/
void space_dither(struct space *s, int verbose) {
/* Store the old dithering vector */
......
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