Commit 63269afa authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Prevent the code from running with feedback but not gas.

parent 7602ce55
......@@ -347,7 +347,17 @@ int main(int argc, char *argv[]) {
if (myrank == 0) {
argparse_usage(&argparse);
printf(
"\nError: Cannot process feedback without stars, -S must be "
"\nError: Cannot process feedback without stars, --stars must be "
"chosen.\n");
}
return 1;
}
if (!with_hydro && with_feedback) {
if (myrank == 0) {
argparse_usage(&argparse);
printf(
"\nError: Cannot process feedback without gas, --hydro must be "
"chosen.\n");
}
return 1;
......
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