Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
32077428
Commit
32077428
authored
Mar 01, 2018
by
Peter W. Draper
Browse files
Move cosmology struct declaration into global scope
parent
835c678a
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
32077428
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment