Skip to content
GitLab
Menu
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
3f28bc56
Commit
3f28bc56
authored
Feb 18, 2019
by
Matthieu Schaller
Browse files
Do not print SF info when not running with SF.
parent
6739deea
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
3f28bc56
...
...
@@ -902,10 +902,11 @@ int main(int argc, char *argv[]) {
if
(
myrank
==
0
)
cooling_print
(
&
cooling_func
);
/* Initialise the star formation law and its properties */
bzero
(
&
starform
,
sizeof
(
struct
star_formation
));
if
(
with_star_formation
)
starformation_init
(
params
,
&
prog_const
,
&
us
,
&
hydro_properties
,
&
starform
);
if
(
myrank
==
0
)
starformation_print
(
&
starform
);
if
(
with_star_formation
&&
myrank
==
0
)
starformation_print
(
&
starform
);
/* Initialise the chemistry */
bzero
(
&
chemistry
,
sizeof
(
struct
chemistry_global_data
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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