aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/src/IterativeSolvers/DGMRES.h
diff options
context:
space:
mode:
authorGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2013-02-02 22:04:42 +0000
committerGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2013-02-02 22:04:42 +0000
commit14e2ab02b58ba07e2be6b003bc178a0ec5e1015b (patch)
treedcddfd386dd5b428beaee6ef14803b4eb00de212 /unsupported/Eigen/src/IterativeSolvers/DGMRES.h
parent35647b01334370d0ddfd5d2d3376d4200947b007 (diff)
Replace assert() by eigen_assert() (fixes bug #548).
Diffstat (limited to 'unsupported/Eigen/src/IterativeSolvers/DGMRES.h')
-rw-r--r--unsupported/Eigen/src/IterativeSolvers/DGMRES.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Eigen/src/IterativeSolvers/DGMRES.h b/unsupported/Eigen/src/IterativeSolvers/DGMRES.h
index 952aba15e..2ea0eccf1 100644
--- a/unsupported/Eigen/src/IterativeSolvers/DGMRES.h
+++ b/unsupported/Eigen/src/IterativeSolvers/DGMRES.h
@@ -38,7 +38,7 @@ struct traits<DGMRES<_MatrixType,_Preconditioner> >
template <typename VectorType, typename IndexType>
void sortWithPermutation (VectorType& vec, IndexType& perm, typename IndexType::Scalar& ncut)
{
- assert(vec.size() == perm.size());
+ eigen_assert(vec.size() == perm.size());
typedef typename IndexType::Scalar Index;
typedef typename VectorType::Scalar Scalar;
Index n = vec.size();
@@ -525,4 +525,4 @@ struct solve_retval<DGMRES<_MatrixType, _Preconditioner>, Rhs>
} // end namespace internal
} // end namespace Eigen
-#endif \ No newline at end of file
+#endif