Commit 32077428 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Move cosmology struct declaration into global scope

parent 835c678a
......@@ -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);
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