From f7bbc3ec356363f3f75bf4d3d2fbc4e1120fed81 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 24 Mar 1999 18:07:52 +0000 Subject: [PATCH] Change assertions to the constraints that were in the old library from which this code was taken. git-svn-id: https://svn.dealii.org/trunk@1045 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/full_matrix.templates.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deal.II/lac/include/lac/full_matrix.templates.h b/deal.II/lac/include/lac/full_matrix.templates.h index 2a153096f5..35e5f5e3cc 100644 --- a/deal.II/lac/include/lac/full_matrix.templates.h +++ b/deal.II/lac/include/lac/full_matrix.templates.h @@ -435,9 +435,9 @@ template template void FullMatrix::backward (Vector& dst, const Vector& src) const { - Assert(n() == m(), ExcNotQuadratic()); + Assert(n() <= m(), ExcNotQuadratic()); Assert(dst.size() == n(), ExcDimensionMismatch(dst.size(), n())); - Assert(src.size() == n(), ExcDimensionMismatch(src.size(), n())); + Assert(src.size() == m(), ExcDimensionMismatch(src.size(), n())); unsigned int j; unsigned int nu = (m()::householder(Vector& src) { // m > n, src.n() = m Assert (dim_range <= dim_image, ExcDimensionMismatch(dim_range, dim_image)); - Assert (src.size() == dim_range, ExcDimensionMismatch(src.size(), dim_range)); + Assert (src.size() == dim_image, ExcDimensionMismatch(src.size(), dim_image)); for (unsigned int j=0 ; j