]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix for step-20 tutorial: changed point subtraction to tensor distance 8458/head
authorkirana-bergstrom <kirana.bergstrom@ucdenver.edu>
Tue, 6 Aug 2019 02:30:59 +0000 (22:30 -0400)
committerkirana-bergstrom <kirana.bergstrom@ucdenver.edu>
Tue, 6 Aug 2019 16:22:24 +0000 (12:22 -0400)
examples/step-20/doc/results.dox

index 12adc83b7e620886f891aa4abe32dc18b53a795c..9afeb6fdaa4a5fa3a782842469ddbcaf38bb774f 100644 (file)
@@ -265,8 +265,7 @@ KInverse<dim>::value_list (const std::vector<Point<dim> > &points,
 
       double permeability = 0;
       for (unsigned int i=0; i<centers.size(); ++i)
-        permeability += std::exp(-(points[p]-centers[i]).square()
-                                 / (0.1 * 0.1));
+        permeability += std::exp(-(points[p] - centers[i]).norm_square() / (0.1 * 0.1));
 
       const double normalized_permeability
         = std::max(permeability, 0.005);

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.