]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Move an assertion to a better place.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 13 Apr 1999 17:19:25 +0000 (17:19 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 13 Apr 1999 17:19:25 +0000 (17:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@1132 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/full_matrix.templates.h

index 2a86876e1c4c4b01293ca108b2ed831f84ac99fa..971ef49144cb74e652da2e6cb3e426284acf3d77 100644 (file)
@@ -1196,7 +1196,6 @@ void
 FullMatrix<number>::invert (const FullMatrix<number> &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<number>::invert (const FullMatrix<number> &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));
     };    
 };
   

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.