Merge pull request #1847 from blattms/print-missing-deck-only-on-master

Let only master process print information about exception.
This commit is contained in:
Atgeirr Flø Rasmussen
2019-05-15 15:10:24 +02:00
committed by GitHub

View File

@@ -162,7 +162,11 @@ int main(int argc, char** argv)
deckFilename = PreVanguard::canonicalDeckPath(deckFilename).string();
}
catch (const std::exception& e) {
std::cerr << "Exception received: " << e.what() << ". Try '--help' for a usage description.\n";
if ( mpiRank == 0 )
std::cerr << "Exception received: " << e.what() << ". Try '--help' for a usage description.\n";
#if HAVE_MPI
MPI_Finalize();
#endif
return 1;
}