]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use braces to avoid a new warning in gcc 4.3. Also use Assert instead of AssertThrow...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 25 Jan 2007 20:57:20 +0000 (20:57 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 25 Jan 2007 20:57:20 +0000 (20:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@14372 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/tridiagonal_matrix.h

index 2f474746dd06475e80d4f41fafe94420218b42fd..82c7208d4688c9eb183afb153377bbef53619ed4 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2005, 2006 by the deal.II authors
+//    Copyright (C) 2005, 2006, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -406,13 +406,17 @@ TridiagonalMatrix<number>::operator()(unsigned int i, unsigned int j) const
   if (j==i)
     return diagonal[i];
   if (j==i-1)
-    if (is_symmetric)
-      return right[i-1];
-    else
-      return left[i];
+    {
+      if (is_symmetric)
+       return right[i-1];
+      else
+       return left[i];
+    }
+  
   if (j==i+1)
     return right[i];
-  AssertThrow(false, ExcInternalError());
+  
+  Assert (false, ExcInternalError());
   return 0;
 }
 
@@ -430,13 +434,17 @@ TridiagonalMatrix<number>::operator()(unsigned int i, unsigned int j)
   if (j==i)
     return diagonal[i];
   if (j==i-1)
-    if (is_symmetric)
-      return right[i-1];
-    else
-      return left[i];
+    {
+      if (is_symmetric)
+       return right[i-1];
+      else
+       return left[i];
+    }
+  
   if (j==i+1)
     return right[i];
-  AssertThrow(false, ExcInternalError());
+
+  Assert (false, ExcInternalError());
   return diagonal[0];
 }
 

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.