Monte carlo AttributeError's caused by bad configuration still returns zero in master sim

If there were bad runs, the master will now exit with a non-zero status.
This commit is contained in:
Alex Lin 2016-08-03 15:01:03 -05:00
parent b102356330
commit 3a261929e8

View File

@ -38,6 +38,10 @@ void Trick::MonteCarlo::master_shutdown() {
print_statistics(&stdout) ;
fclose(file_ptr) ;
if ( !except_return and failed_runs.size() > 0 ) {
except_return = -2 ;
}
exit(except_return);
}