]> https://gitweb.dealii.org/ - dealii.git/commitdiff
one more example 521/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 11 Feb 2015 22:21:31 +0000 (17:21 -0500)
committerTimo Heister <timo.heister@gmail.com>
Wed, 11 Feb 2015 22:21:31 +0000 (17:21 -0500)
examples/step-43/step-43.cc

index 0dd8b185998749f10aba0d568152d6607aa23a84..c534b2c9c6cb10047705cb7372c76306b0761bcf 100644 (file)
@@ -288,7 +288,7 @@ namespace Step43
 
           double permeability = 0;
           for (unsigned int i=0; i<centers.size(); ++i)
-            permeability += std::exp(-(points[p]-centers[i]).square()
+            permeability += std::exp(-(points[p]-centers[i]).norm_square()
                                      / (0.05 * 0.05));
 
           const double normalized_permeability

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.