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

reading cdim from parameter file for check in gravity props initialisation

parent c61dd1ae
No related branches found
No related tags found
No related merge requests found
...@@ -1312,6 +1312,16 @@ int main(int argc, char *argv[]) { ...@@ -1312,6 +1312,16 @@ int main(int argc, char *argv[]) {
neutrino_props_init(&neutrino_properties, &prog_const, &us, params, &cosmo, neutrino_props_init(&neutrino_properties, &prog_const, &us, params, &cosmo,
with_neutrinos); with_neutrinos);
/* Get cdim from parameter file for gravity property intialisation */
/* Set the zoom cdim. */
int cdim[3]
cdim[0] = parser_get_opt_param_int(params, "Scheduler:max_top_level_cells",
space_max_top_level_cells_default);
cdim[1] = parser_get_opt_param_int(params, "Scheduler:max_top_level_cells",
space_max_top_level_cells_default);
cdim[2] = parser_get_opt_param_int(params, "Scheduler:max_top_level_cells",
space_max_top_level_cells_default);
/* 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)
...@@ -1320,7 +1330,7 @@ int main(int argc, char *argv[]) { ...@@ -1320,7 +1330,7 @@ int main(int argc, char *argv[]) {
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,
dim, s.cdim); dim, 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