]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Work around an anonymous namespace warning bug of the MIPSpro compiler.
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Tue, 27 Apr 2004 09:37:59 +0000 (09:37 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Tue, 27 Apr 2004 09:37:59 +0000 (09:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@9106 0785d39b-7218-0410-832d-ea1e28bc413d

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

index c613b4dbbeeca3a58ac4526fadf9ed8576ae0ff9..4b2323ff58f33c28cf3e43e1ab9bdf69bf457cd3 100644 (file)
@@ -103,7 +103,11 @@ GridTools::diameter (const Triangulation<1> &tria)
 
 
 // define some transformations in an anonymous namespace
-namespace 
+#ifdef DEAL_II_ANON_NAMESPACE_BOGUS_WARNING
+  namespace TRANS
+#else
+  namespace
+#endif
 {
   template <int dim>
   class ShiftPoint
@@ -167,7 +171,11 @@ void
 GridTools::shift (const Point<dim>   &shift_vector,
                  Triangulation<dim> &triangulation)
 {
+#ifdef DEAL_II_ANON_NAMESPACE_BOGUS_WARNING
+  transform (TRANS::ShiftPoint<dim>(shift_vector), triangulation);
+#else
   transform (ShiftPoint<dim>(shift_vector), triangulation);
+#endif  
 }
 
 
@@ -177,7 +185,11 @@ void
 GridTools::rotate (const double      angle,
                   Triangulation<2> &triangulation)
 {
+#ifdef DEAL_II_ANON_NAMESPACE_BOGUS_WARNING
+  transform (TRANS::Rotate2d(angle), triangulation);
+#else
   transform (Rotate2d(angle), triangulation);
+#endif  
 }
 
 #endif
@@ -189,7 +201,11 @@ GridTools::scale (const double        scaling_factor,
                  Triangulation<dim> &triangulation)
 {
   Assert (scaling_factor>0, ExcScalingFactorNotPositive (scaling_factor));
+#ifdef DEAL_II_ANON_NAMESPACE_BOGUS_WARNING
+  transform (TRANS::ScalePoint<dim>(scaling_factor), triangulation);
+#else
   transform (ScalePoint<dim>(scaling_factor), triangulation);
+#endif  
 }
 
 

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.