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

Better --fof help string and prevent the code from running with black holes...

Better --fof help string and prevent the code from running with black holes seeding if the black holes policy has not been chosen.
parent 3c957642
Branches
Tags
1 merge request!543Fof
......@@ -212,9 +212,10 @@ int main(int argc, char *argv[]) {
OPT_BOOLEAN('S', "stars", &with_stars, "Run with stars.", NULL, 0, 0),
OPT_BOOLEAN('B', "black-holes", &with_black_holes,
"Run with black holes.", NULL, 0, 0),
OPT_BOOLEAN('u', "fof", &with_fof,
"Run Friends-of-Friends algorithm and black holes seeding.",
NULL, 0, 0),
OPT_BOOLEAN(
'u', "fof", &with_fof,
"Run Friends-of-Friends algorithm to perform black hole seeding.",
NULL, 0, 0),
OPT_BOOLEAN('x', "velociraptor", &with_structure_finding,
"Run with structure finding.", NULL, 0, 0),
OPT_BOOLEAN(0, "limiter", &with_limiter, "Run with time-step limiter.",
......@@ -373,6 +374,14 @@ int main(int argc, char *argv[]) {
return 1;
}
if (with_fof && !with_black_holes) {
if (myrank == 0)
printf(
"Error: Cannot perform FOF seeding without black holes being in use, "
"-B must be chosen.\n");
return 1;
}
if (!with_stars && with_star_formation) {
if (myrank == 0) {
argparse_usage(&argparse);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment