Skip to content
Snippets Groups Projects
Commit 32077428 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Move cosmology struct declaration into global scope

parent 835c678a
No related branches found
No related tags found
1 merge request!509Cosmological time integration
......@@ -126,6 +126,7 @@ int main(int argc, char *argv[]) {
* scope. */
struct chemistry_data chemistry;
struct cooling_function_data cooling_func;
struct cosmology cosmo;
struct external_potential potential;
struct gpart *gparts = NULL;
struct gravity_props gravity_properties;
......@@ -601,7 +602,6 @@ int main(int argc, char *argv[]) {
}
/* Initialise the cosmology */
struct cosmology cosmo;
if (with_cosmology)
cosmology_init(params, &us, &prog_const, &cosmo);
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment