]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove some old workarounds from the time when we still compiled every file multiple...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 1 Nov 2012 02:32:09 +0000 (02:32 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 1 Nov 2012 02:32:09 +0000 (02:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@27278 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/data_out_base.cc
deal.II/source/fe/fe_q.cc
deal.II/source/fe/fe_tools.cc
deal.II/source/grid/grid_tools.cc

index 5a56f06a97b2197e76f0f01d346b39408ff4baf3..9d4a1afe05f20a010a5198e5497ecd7f60bccc08 100644 (file)
@@ -4160,11 +4160,7 @@ void DataOutBase::write_tecplot (const std::vector<Patch<dim,spacedim> > &patche
 
 #ifdef DEAL_II_HAVE_TECPLOT
 
-#ifdef DEAL_II_ANON_NAMESPACE_BOGUS_WARNING
-namespace TEC
-#else
 namespace
-#endif
 {
   class TecplotMacros
   {
@@ -4325,11 +4321,7 @@ void DataOutBase::write_tecplot_binary (const std::vector<Patch<dim,spacedim> >
   const unsigned int vars_per_node  = (spacedim+n_data_sets),
                      nodes_per_cell = GeometryInfo<dim>::vertices_per_cell;
 
-#ifdef DEAL_II_ANON_NAMESPACE_BOGUS_WARNING
-  TEC::TecplotMacros tm(n_nodes, vars_per_node, n_cells, nodes_per_cell);
-#else
   TecplotMacros tm(n_nodes, vars_per_node, n_cells, nodes_per_cell);
-#endif
 
   int is_double = 0,
       tec_debug = 0,
index 9c4270521ed8e52486198a62834f703260ebaf29..a646da1fcaf0e3bdf54bf5693d4d5b18fe73dbdb 100644 (file)
@@ -56,9 +56,6 @@ namespace FE_Q_Helper
                                      // given a permutation array,
                                      // compute and return the inverse
                                      // permutation
-#ifdef DEAL_II_ANON_NAMESPACE_BUG
-    static
-#endif
     inline
     std::vector<unsigned int>
     invert_numbering (const std::vector<unsigned int> &in)
@@ -77,9 +74,6 @@ namespace FE_Q_Helper
                                 // performance reasons. this clears a
                                 // dim-array
     template <int dim>
-#ifdef DEAL_II_ANON_NAMESPACE_BUG
-    static
-#endif
     inline
     void
     zero_indices (unsigned int indices[dim])
@@ -96,9 +90,6 @@ namespace FE_Q_Helper
                                 // performance reasons. this increments tensor
                                 // product indices
     template <int dim>
-#ifdef DEAL_II_ANON_NAMESPACE_BUG
-    static
-#endif
     inline
     void
     increment_indices (unsigned int       indices[dim],
@@ -123,9 +114,6 @@ namespace FE_Q_Helper
                                 // creates them from dim-dimensional support
                                 // points.
     template <int dim>
-#ifdef DEAL_II_ANON_NAMESPACE_BUG
-    static
-#endif
     inline
     std::vector<Polynomials::Polynomial<double> >
     generate_poly_space1d (const std::vector<Point<dim> >  &unit_support_points,
index cd7d7a28f9841601f0ad6c937ed25a83d98b30c5..7c2e8d41c8a2ae4ad1cf46dc3474d272bd6f3246 100644 (file)
@@ -121,9 +121,6 @@ namespace
                                    // them. used to initialize
                                    // fe_name_map below
   template <int dim>
-#ifdef DEAL_II_ANON_NAMESPACE_BUG
-    static
-#endif
   std::map<std::string,std_cxx1x::shared_ptr<const FETools::FEFactoryBase<dim> > >
   get_default_fe_names ()
   {
@@ -1209,7 +1206,7 @@ namespace FETools
             std::vector<Point<dim> > q_points_coarse(q_points_fine.size());
             for (unsigned int q=0;q<q_points_fine.size();++q)
                 for (unsigned int j=0;j<dim;++j)
-                    q_points_coarse[q](j) = q_points_fine[q](j);            
+                    q_points_coarse[q](j) = q_points_fine[q](j);
            Quadrature<dim> q_coarse (q_points_coarse,
                                      fine.get_JxW_values());
            FEValues<dim,spacedim> coarse (mapping, fe, q_coarse, update_values);
index 13eaa8b5bc0d58e6b581f6b7fe52dd3b359e89a6..321023958a63007f63adcb6c486e8d76e1b00f60 100644 (file)
@@ -511,11 +511,7 @@ namespace GridTools
 
 
 // define some transformations in an anonymous namespace
-#ifdef DEAL_II_ANON_NAMESPACE_BOGUS_WARNING
-  namespace TRANS
-#else
   namespace
-#endif
   {
     template <int spacedim>
     class ShiftPoint
@@ -577,11 +573,7 @@ namespace GridTools
   shift (const Point<spacedim>   &shift_vector,
          Triangulation<dim, spacedim> &triangulation)
   {
-#ifdef DEAL_II_ANON_NAMESPACE_BOGUS_WARNING
-    transform (TRANS::ShiftPoint<spacedim>(shift_vector), triangulation);
-#else
     transform (ShiftPoint<spacedim>(shift_vector), triangulation);
-#endif
   }
 
 
@@ -590,11 +582,7 @@ namespace 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
   }
 
 
@@ -605,11 +593,7 @@ namespace GridTools
          Triangulation<dim, spacedim> &triangulation)
   {
     Assert (scaling_factor>0, ExcScalingFactorNotPositive (scaling_factor));
-#ifdef DEAL_II_ANON_NAMESPACE_BOGUS_WARNING
-    transform (TRANS::ScalePoint<spacedim>(scaling_factor), triangulation);
-#else
     transform (ScalePoint<spacedim>(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.