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

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:43 -05:00
parent bd37006244
commit 4de4bf0692

View File

@ -36,6 +36,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);
}