]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Change Function::vector_gradient_list.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 25 Mar 2010 20:12:28 +0000 (20:12 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 25 Mar 2010 20:12:28 +0000 (20:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@20894 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/function.cc
deal.II/doc/news/changes.h

index e0c981ee3fea1fe57905e751ed83e9155cf559bb..d8b029ed3840fb7566e5b55d596c139a97ceb56e 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -145,9 +145,8 @@ void Function<dim>::vector_gradient_list (const std::vector<Point<dim> >
     {
       Assert (gradients[i].size() == n_components,
              ExcDimensionMismatch(gradients[i].size(), n_components));
-      for (unsigned int component=0; component<n_components; ++component)
-       gradients[i][component] = gradient(points[i], component);
-    };
+      vector_gradient (points[i], gradients[i]);
+    }
 }
 
 
index 002b7a948da48ba333174f8bd4be15ec35bc576e..cac052f26e09d049be89a75314f9d83c97eb65e5 100644 (file)
@@ -254,6 +254,14 @@ inconvenience this causes.
 <h3>base</h3>
 
 <ol>
+  <li><p>Changed: The Function::vector_gradient_list function was previously
+  implemented by calling Function::gradient on each point and each component.
+  It has been changed to now call Function::vector_gradient on each point
+  only, and derived classes should implement this function accordingly.
+  <br>
+  (WB 2010/02/10)
+  </p></li>
+
   <li><p>Fixed: The file <code>data_out_base.cc</code> could not be compiled
   when Tecplot was available. This should now be fixed.
   <br>

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.