From: hartmann Date: Tue, 13 Apr 1999 17:19:25 +0000 (+0000) Subject: Move an assertion to a better place. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85c77bc80c8f92bef472c39efc2ee081da39c244;p=dealii-svn.git Move an assertion to a better place. git-svn-id: https://svn.dealii.org/trunk@1132 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/full_matrix.templates.h b/deal.II/lac/include/lac/full_matrix.templates.h index 2a86876e1c..971ef49144 100644 --- a/deal.II/lac/include/lac/full_matrix.templates.h +++ b/deal.II/lac/include/lac/full_matrix.templates.h @@ -1196,7 +1196,6 @@ void FullMatrix::invert (const FullMatrix &M) { Assert (dim_range == dim_image, ExcNotQuadratic()); - Assert ((dim_range>=1) && (dim_range<=4), ExcNotImplemented(dim_range)); Assert (dim_range == M.dim_range, ExcDimensionMismatch(dim_range,M.dim_range)); Assert (dim_image == M.dim_image, @@ -1338,7 +1337,12 @@ FullMatrix::invert (const FullMatrix &M) t54*M.el(1,2)-t123*M.el(1,1))*t65; el(3,3) = (t14*M.el(2,2)-t129*M.el(2,1)-t29*M.el(2,2)+t133*M.el(2,1)+ t43*M.el(1,2)-t119*M.el(1,1))*t65; + + break; } + + default: + Assert (false, ExcNotImplemented(dim_range)); }; };