]> https://gitweb.dealii.org/ - dealii.git/commitdiff
No need for double parentheses. 3450/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 4 Nov 2016 13:13:41 +0000 (07:13 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 4 Nov 2016 13:13:41 +0000 (07:13 -0600)
source/grid/manifold_lib.cc

index 23bc0222698f1f282279eb3bcda55c6de935ba79..431cbe8d66a4fb39642004d26fe5ca18d4a9cb77 100644 (file)
@@ -483,7 +483,7 @@ TorusManifold<dim>::pull_back(const Point<3> &p) const
   double y = p(2);
   double phi = atan2(y, x);
   double theta = atan2(z, std::sqrt(x*x+y*y)-R);
-  double w = std::sqrt((pow(y-sin(phi)*R, 2.0)+pow(x-cos(phi)*R, 2.0)+z*z))/r;
+  double w = std::sqrt(pow(y-sin(phi)*R, 2.0)+pow(x-cos(phi)*R, 2.0)+z*z)/r;
   return Point<3>(phi, theta, w);
 }
 

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.