From: David Wells Date: Fri, 16 Mar 2018 16:03:23 +0000 (-0400) Subject: Fix some assertions in FullMatrix. X-Git-Tag: v9.0.0-rc1~322^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a6692da0d3282465806c0ad3dffb30e5f951837;p=dealii.git Fix some assertions in FullMatrix. --- diff --git a/include/deal.II/lac/full_matrix.templates.h b/include/deal.II/lac/full_matrix.templates.h index 9859a8992e..6132eeeade 100644 --- a/include/deal.II/lac/full_matrix.templates.h +++ b/include/deal.II/lac/full_matrix.templates.h @@ -108,7 +108,7 @@ FullMatrix & FullMatrix::operator = (const LAPACKFullMatrix &M) { Assert (this->m() == M.n_rows(), ExcDimensionMismatch(this->m(), M.n_rows())); - Assert (this->n() == M.n_cols(), ExcDimensionMismatch(this->n(), M.n_rows())); + Assert (this->n() == M.n_cols(), ExcDimensionMismatch(this->n(), M.n_cols())); for (size_type i=0; im(); ++i) for (size_type j=0; jn(); ++j) (*this)(i,j) = M(i,j); @@ -932,7 +932,7 @@ FullMatrix::matrix_scalar_product (const Vector &u, { Assert (!this->empty(), ExcEmptyMatrix()); - Assert(m() == u.size(), ExcDimensionMismatch(m(),v.size())); + Assert(m() == u.size(), ExcDimensionMismatch(m(),u.size())); Assert(n() == v.size(), ExcDimensionMismatch(n(),v.size())); number2 sum = 0.;