Skip to content

Commit

Permalink
Merge Pull Request #3940 from cgcgcg/Trilinos/belosFix
Browse files Browse the repository at this point in the history
Automatically Merged using Trilinos Pull Request AutoTester
PR Title: Belos SingleRedIter: Fix type bug
PR Author: cgcgcg
  • Loading branch information
trilinos-autotester authored Nov 28, 2018
2 parents c5d7f62 + 54f9565 commit 68c7e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/belos/src/BelosCGSingleRedIter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ class CGSingleRedIter : virtual public CGIteration<ScalarType,MV,OP> {
MVT::MvTransMv( one, *S_, *Z_, sHz );
rHz = sHz(0,0);
delta = sHz(1,0);
if ((delta < Teuchos::ScalarTraits<ScalarType>::eps()) &&
if ((Teuchos::ScalarTraits<ScalarType>::magnitude(delta) < Teuchos::ScalarTraits<ScalarType>::eps()) &&
(stest_->checkStatus(this) == Passed))
return;
alpha = rHz / delta;
Expand Down

0 comments on commit 68c7e74

Please sign in to comment.