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

Make sure we can run with -x only if VELOCIraptor is on. Temporarily prevent STF to run over MPI.

parent b9124e9e
Branches
Tags
1 merge request!578Swift velociraptor
......@@ -306,7 +306,11 @@ int main(int argc, char *argv[]) {
}
break;
case 'x':
#ifdef HAVE_VELOCIRAPTOR
with_structure_finding = 1;
#else
error("Error: (-x) needs to have the code compiled with VELOCIraptor linked in.");
#endif
break;
case 'y':
if (sscanf(optarg, "%d", &dump_tasks) != 1) {
......@@ -717,6 +721,11 @@ int main(int argc, char *argv[]) {
error("Periodic self-gravity over MPI temporarily disabled.");
#endif
#if defined(WITH_MPI) && defined(HAVE_VELOCIRAPTOR)
if(with_structure_finding)
error("VEOCIraptor not yet enabled over MPI.");
#endif
#ifdef SWIFT_DEBUG_CHECKS
/* Check once and for all that we don't have unwanted links */
if (!with_stars && !dry_run) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment