diff --git a/examples/main.c b/examples/main.c index ac385a0ec39abdbc6eca8c491fb7f7d5e27803b8..10e592109b075069286c74ba27508f5ba73818b1 100644 --- a/examples/main.c +++ b/examples/main.c @@ -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);