Skip to content
Snippets Groups Projects
Commit cc097e53 authored by William Roper's avatar William Roper
Browse files

fixed using uninitialised space params in gravity_props_init

parent cfd39445
No related branches found
No related tags found
No related merge requests found
...@@ -1315,11 +1315,12 @@ int main(int argc, char *argv[]) { ...@@ -1315,11 +1315,12 @@ int main(int argc, char *argv[]) {
/* Initialise the gravity properties */ /* Initialise the gravity properties */
bzero(&gravity_properties, sizeof(struct gravity_props)); bzero(&gravity_properties, sizeof(struct gravity_props));
if (with_self_gravity) if (with_self_gravity)
/* NOTE: In the zoom branch cdim is yet to be set by this point */
gravity_props_init(&gravity_properties, params, &prog_const, &cosmo, gravity_props_init(&gravity_properties, params, &prog_const, &cosmo,
with_cosmology, with_external_gravity, with_cosmology, with_external_gravity,
with_baryon_particles, with_DM_particles, with_baryon_particles, with_DM_particles,
with_neutrinos, with_DM_background_particles, periodic, with_neutrinos, with_DM_background_particles, periodic,
s.dim, s.cdim); dim, s.cdim);
/* Initialize the space with these data. */ /* Initialize the space with these data. */
if (myrank == 0) clocks_gettime(&tic); if (myrank == 0) clocks_gettime(&tic);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment