Skip to content
Snippets Groups Projects
Commit 3f28bc56 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Do not print SF info when not running with SF.

parent 6739deea
No related branches found
No related tags found
2 merge requests!745Rewrite of MPI loops - Add stellar feedback loops,!744Mpi stars2 matthieu
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment