]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Externalize this function since it does not depend on the dimension
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 23 Dec 1999 11:10:17 +0000 (11:10 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 23 Dec 1999 11:10:17 +0000 (11:10 +0000)
and therefore leads to problems when linking with libdeal_II_2d and
libdeal_II_3d at the same time.

git-svn-id: https://svn.dealii.org/trunk@2121 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/vectors.cc

index b98221083d5a4eaad80611511ddc2b0ec4c865cb..31335b2defc4cc4270d73bd3edb19c1fc64263b2 100644 (file)
@@ -951,31 +951,6 @@ VectorTools::integrate_difference (const DoFHandler<dim>    &dof,
 
 
 
-void
-VectorTools::subtract_mean_value(Vector<double>     &v,
-                                const vector<bool> &p_select)
-{
-  unsigned int n = v.size();
-  Assert(n == p_select.size(), ExcDimensionMismatch(n, p_select.size()));
-
-  double       s       = 0;
-  unsigned int counter = 0;
-  
-  for (unsigned int i=0; i<n; ++i)
-    if (p_select[i])
-      {
-       s += v(i);
-       ++counter;
-      };
-
-  s /= counter;
-  
-  for (unsigned int i=0; i<n; ++i)
-    if (p_select[i])
-      v(i) -= s;  
-};
-
-
 
 // explicit instantiations
 template

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.