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

Document the new function in space.c

parent 924eb20f
No related branches found
No related tags found
1 merge request!952Gravity dithering
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment