Skip to content
Snippets Groups Projects

Make sure gravity (self or external) is switched on when running with stars.

Merged Matthieu Schaller requested to merge stars_always_need_gravity into master
+ 8
0
Compare changes
  • Side-by-side
  • Inline
+ 8
0
@@ -294,6 +294,14 @@ int main(int argc, char *argv[]) {
if (myrank == 0) print_help_message();
return 1;
}
if (with_stars && !with_external_gravity && !with_self_gravity) {
if (myrank == 0)
printf(
"Error: Cannot process stars without gravity, -g or -G must be "
"chosen.\n");
if (myrank == 0) print_help_message();
return 1;
}
/* Genesis 1.1: And then, there was time ! */
clocks_set_cpufreq(cpufreq);
Loading