]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid a warning with icc.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Sep 2002 22:51:23 +0000 (22:51 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Sep 2002 22:51:23 +0000 (22:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@6522 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_tools.cc

index ce039688cd5e1733661ffbb8e499aec02088a79e..d7109293f00eab8fbbcc3f4b8929a098d7a653fe 100644 (file)
@@ -114,7 +114,10 @@ namespace
   };
 
 
-
+                                   // the following class is only
+                                   // needed in 2d, so avoid trouble
+                                   // with compilers warning otherwise
+#if deal_II_dimension == 2
   class Rotate2d
   {
     public:
@@ -130,6 +133,7 @@ namespace
     private:
       const double angle;
   };
+#endif
 
 
   template <int dim>

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.