Skip to content

Commit

Permalink
Stokhos: do not test the convergence if currTolerance_ is a NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
kliegeois committed Apr 13, 2020
1 parent 863f8e4 commit c59cc01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ checkStatus (Iteration<ScalarType,MV,OP>* iSolver)
{
for (int ii=0; ii<ensemble_size; ++ii) {
if (!(tmp_testvector[i].coeff(ii) <= tolerance_.coeff(ii))) {
if (diff.coeff(ii) > currTolerance_.coeff(ii)) {
if ( TVT::isnaninf(currTolerance_.coeff(ii)) || diff.coeff(ii) > currTolerance_.coeff(ii)) {
lossDetected_ = true;
}
else {
Expand Down

0 comments on commit c59cc01

Please sign in to comment.