First compiling version

This commit is contained in:
2023-12-12 18:57:57 +01:00
parent db9e80a70e
commit dbf2f35502
3 changed files with 84 additions and 45 deletions

View File

@@ -189,8 +189,8 @@ int main(int argc, char** argv)
auto excluded = program.get<std::string>("exclude");
config.excluded = json::parse(excluded);
if (program.get<bool>("mpi")) {
if (!compute) {
throw std::runtime_error("Cannot use --mpi without --compute");
if (!compute || config.nested == 0) {
throw std::runtime_error("Cannot use --mpi without --compute or without --nested");
}
}
}