]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor cleanups.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 9 May 2015 03:36:20 +0000 (22:36 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 9 May 2015 03:36:20 +0000 (22:36 -0500)
include/deal.II/numerics/vector_tools.templates.h

index b78abbb44dd6c3b11b2138e8419c63169899889e..c9b851f19cf4275c51927271ff923df4f406d2f6 100644 (file)
@@ -7009,17 +7009,22 @@ namespace VectorTools
       }
   }
 
-  // move to deal.ii/base/numbers.h ?
-  namespace internal
+  namespace
   {
     template <typename Number>
-    void set_possibly_complex_number(Number &n, const double &r, const double &)
+    void set_possibly_complex_number(const double &r,
+                                     const double &,
+                                     Number &n)
     {
       n = r;
     }
 
+
+
     template <typename Type>
-    void set_possibly_complex_number(std::complex<Type> &n, const double &r, const double &i)
+    void set_possibly_complex_number(const double &r,
+                                     const double &i,
+                                     std::complex<Type> &n)
     {
       n = std::complex<Type>(r,i);
     }
@@ -7083,7 +7088,8 @@ namespace VectorTools
                        MPI_SUM,
                        p_d_triangulation->get_communicator());
 
-        internal::set_possibly_complex_number(mean,global_values[0],global_values[1]);
+        set_possibly_complex_number(global_values[0], global_values[1],
+                                    mean);
         area = global_values[2];
       }
 #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.