Exit is better than abort.

Also use a macro instead of integer to indicate failure.
This commit is contained in:
Tiago Gomes
2012-12-20 17:37:59 +00:00
parent 2ca31ca14a
commit 053fa31bb2
9 changed files with 24 additions and 25 deletions

View File

@@ -691,7 +691,7 @@ Parfactor::expandPotential (
if (newSize > params_.max_size()) {
cerr << "error: an overflow occurred when performing expansion" ;
cerr << endl;
abort();
exit (EXIT_FAILURE);
}
Params backup = params_;