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

deal.II/deal.II/source/fe/hp_fe_values.cc

index c80396fd44273c9cbaa46518cc3c5fd2ee2e8615..604d9839bebf7a18f466839fde6d73e2a6fe3d6c 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2003, 2006 by the deal.II authors
+//    Copyright (C) 2003, 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
@@ -150,17 +150,21 @@ namespace hp
                  real_fe_index      = fe_index;
 
     if (real_q_index == deal_II_numbers::invalid_unsigned_int)
-      if (this->q_collection.size() > 1)
-        real_q_index = cell->active_fe_index();
-      else
-        real_q_index = 0;
+      {
+       if (this->q_collection.size() > 1)
+         real_q_index = cell->active_fe_index();
+       else
+         real_q_index = 0;
+      }
     
     if (real_mapping_index == deal_II_numbers::invalid_unsigned_int)
-      if (this->mapping_collection->size() > 1)
-        real_mapping_index = cell->active_fe_index();
-      else
-        real_mapping_index = 0;
-
+      {
+       if (this->mapping_collection->size() > 1)
+         real_mapping_index = cell->active_fe_index();
+       else
+         real_mapping_index = 0;
+      }
+    
     if (real_fe_index == deal_II_numbers::invalid_unsigned_int)
       real_fe_index = cell->active_fe_index();
 
@@ -343,17 +347,21 @@ namespace hp
                  real_fe_index      = fe_index;
 
     if (real_q_index == deal_II_numbers::invalid_unsigned_int)
-      if (this->q_collection.size() > 1)
-        real_q_index = cell->active_fe_index();
-      else
-        real_q_index = 0;
+      {
+       if (this->q_collection.size() > 1)
+         real_q_index = cell->active_fe_index();
+       else
+         real_q_index = 0;
+      }
     
     if (real_mapping_index == deal_II_numbers::invalid_unsigned_int)
-      if (this->mapping_collection->size() > 1)
-        real_mapping_index = cell->active_fe_index();
-      else
-        real_mapping_index = 0;
-
+      {
+       if (this->mapping_collection->size() > 1)
+         real_mapping_index = cell->active_fe_index();
+       else
+         real_mapping_index = 0;
+      }
+    
     if (real_fe_index == deal_II_numbers::invalid_unsigned_int)
       real_fe_index = cell->active_fe_index();
 
@@ -540,17 +548,21 @@ namespace hp
                  real_fe_index      = fe_index;
 
     if (real_q_index == deal_II_numbers::invalid_unsigned_int)
-      if (this->q_collection.size() > 1)
-        real_q_index = cell->active_fe_index();
-      else
-        real_q_index = 0;
+      {
+       if (this->q_collection.size() > 1)
+         real_q_index = cell->active_fe_index();
+       else
+         real_q_index = 0;
+      }
     
     if (real_mapping_index == deal_II_numbers::invalid_unsigned_int)
-      if (this->mapping_collection->size() > 1)
-        real_mapping_index = cell->active_fe_index();
-      else
-        real_mapping_index = 0;
-
+      {
+       if (this->mapping_collection->size() > 1)
+         real_mapping_index = cell->active_fe_index();
+       else
+         real_mapping_index = 0;
+      }
+    
     if (real_fe_index == deal_II_numbers::invalid_unsigned_int)
       real_fe_index = cell->active_fe_index();
 

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.