]> https://gitweb.dealii.org/ - dealii.git/commitdiff
More Point vs Tensor fixes 571/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 19 Feb 2015 07:50:40 +0000 (08:50 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 19 Feb 2015 07:53:29 +0000 (08:53 +0100)
examples/step-34/step-34.cc

index b0ee9e921ca607c4500109dfce4627903956d4f8..09641afb9dc6ff34b63e19c4a8f9c75e08c5bb57 100644 (file)
@@ -103,13 +103,13 @@ namespace Step34
       switch (dim)
         {
         case 2:
-          return R / ( -2*numbers::PI * R.square());
+          return R / ( -2*numbers::PI * R.norm_square());
         case 3:
-          return R / ( -4*numbers::PI * R.square() * R.norm() );
+          return R / ( -4*numbers::PI * R.norm_square() * R.norm() );
 
         default:
           Assert(false, ExcInternalError());
-          return Point<dim>();
+          return Tensor<1,dim>();
         }
     }
   }

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.