Commit d96d4b85 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Allow compilation without gravity force checks

parent 67f756a6
......@@ -40,6 +40,8 @@
*/
int gravity_exact_force_file_exits(const struct engine *e) {
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
/* File name */
char file_name[100];
sprintf(file_name, "gravity_checks_exact_step%d.dat", e->step);
......@@ -74,6 +76,10 @@ int gravity_exact_force_file_exits(const struct engine *e) {
}
}
return 0;
#else
error("Gravity checking function called without the corresponding flag.");
return 0;
#endif
}
/**
......
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