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 928908c commit 863f8e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ checkStatus (Iteration<ScalarType,MV,OP>* iSolver)
const int ensemble_size = StorageType::static_size;
bool all_converged = true;
for (int ii=0; ii<ensemble_size; ++ii) {
if (testvector_[ *p ].coeff(ii) > currTolerance_.coeff(ii)) {
if (! TVT::isnaninf(currTolerance_.coeff(ii)) && testvector_[ *p ].coeff(ii) > currTolerance_.coeff(ii)) {
++ensemble_iterations[ii];
all_converged = false;
}
Expand Down

0 comments on commit 863f8e4

Please sign in to comment.