]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix the failing indentation. 2310/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 5 Mar 2016 19:32:10 +0000 (14:32 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 5 Mar 2016 19:32:10 +0000 (14:32 -0500)
tests/manifold/chart_manifold_07.cc
tests/manifold/chart_manifold_08.cc

index ba50b51b587f966554879c957dd5172bbac2dd75..e6738cec8c89d6fbbb581bb9ca478c48803818ca 100644 (file)
@@ -18,8 +18,8 @@
 
 
 Point<3> periodicity (/*r=*/0,
-                      /*phi=*/2*numbers::PI,
-                      /*z=*/0);
+                            /*phi=*/2*numbers::PI,
+                            /*z=*/0);
 
 class MyCylinderManifold : public ChartManifold<2,3,3>
 {
@@ -27,7 +27,7 @@ public:
   static const int dim = 2;
   static const int spacedim = 3;
   static const int chartdim = 3;
-  
+
   MyCylinderManifold ()
     :
     ChartManifold<dim,spacedim,spacedim>(periodicity)
@@ -44,7 +44,7 @@ public:
 
     const double r   = std::sqrt(x*x + y*y);
     const double phi = std::atan2(y,x);
-    
+
     return Point<3>(r,
                     phi,
                     z);
@@ -58,7 +58,7 @@ public:
     const double r   = chart_point[0];
     const double phi = chart_point[1];
     const double z   = chart_point[2];
-    
+
     return Point<3>(r*std::cos(phi),
                     r*std::sin(phi),
                     z);
@@ -69,7 +69,7 @@ public:
   push_forward_gradient(const Point<spacedim> &chart_point) const
   {
     DerivativeForm<1,spacedim,spacedim> g;
-    
+
     const double r   = chart_point[0];
     const double phi = chart_point[1];
     const double z   = chart_point[2];
@@ -77,15 +77,15 @@ public:
     g[0][0] = std::cos(phi);
     g[0][1] = -r*std::sin(phi);
     g[0][2] = 0;
-    
+
     g[1][0] = std::sin(phi);
     g[1][1] = r*std::cos(phi);
     g[1][2] = 0;
-    
+
     g[2][0] = 0;
     g[2][1] = 0;
     g[2][2] = 1;
-    
+
     return g;
   }
 };
@@ -111,44 +111,44 @@ void test()
 
   // check two points that are straight up and down from each other
   test_direction (manifold.push_forward (Point<3>(/*r  =*/4,
-                                                  /*phi=*/0.1,
-                                                  /*z  =*/-1)),
+                                                          /*phi=*/0.1,
+                                                          /*z  =*/-1)),
                   manifold.push_forward (Point<3>(/*r  =*/4,
-                                                  /*phi=*/0.1,
-                                                  /*z  =*/+2)));
+                                                          /*phi=*/0.1,
+                                                          /*z  =*/+2)));
 
   // check two points that are radial
   test_direction (manifold.push_forward (Point<3>(/*r  =*/1,
-                                                  /*phi=*/0.1,
-                                                  /*z  =*/-1)),
+                                                          /*phi=*/0.1,
+                                                          /*z  =*/-1)),
                   manifold.push_forward (Point<3>(/*r  =*/4,
-                                                  /*phi=*/0.1,
-                                                  /*z  =*/-1)));
+                                                          /*phi=*/0.1,
+                                                          /*z  =*/-1)));
 
   // check two points that are horizontal
   test_direction (manifold.push_forward (Point<3>(/*r  =*/4,
-                                                  /*phi=*/0,
-                                                  /*z  =*/-1)),
+                                                          /*phi=*/0,
+                                                          /*z  =*/-1)),
                   manifold.push_forward (Point<3>(/*r  =*/4,
-                                                  /*phi=*/numbers::PI/4,
-                                                  /*z  =*/-1)));
+                                                          /*phi=*/numbers::PI/4,
+                                                          /*z  =*/-1)));
 
   // same but rotated
   test_direction (manifold.push_forward (Point<3>(/*r  =*/4,
-                                                  /*phi=*/numbers::PI/4,
-                                                  /*z  =*/-1)),
+                                                          /*phi=*/numbers::PI/4,
+                                                          /*z  =*/-1)),
                   manifold.push_forward (Point<3>(/*r  =*/4,
-                                                  /*phi=*/numbers::PI/2,
-                                                  /*z  =*/-1)));
+                                                          /*phi=*/numbers::PI/2,
+                                                          /*z  =*/-1)));
 
 
   // check two points that are at the same radius but not horizontal
   test_direction (manifold.push_forward (Point<3>(/*r  =*/4,
-                                                  /*phi=*/0,
-                                                  /*z  =*/-1)),
+                                                          /*phi=*/0,
+                                                          /*z  =*/-1)),
                   manifold.push_forward (Point<3>(/*r  =*/4,
-                                                  /*phi=*/numbers::PI/4,
-                                                  /*z  =*/1)));
+                                                          /*phi=*/numbers::PI/4,
+                                                          /*z  =*/1)));
 }
 
 int main ()
index b20297f2bc8b045776233796c86d2ccf1237e189..cbf25744085e63c85bc7ecb42815dcf2c44e9c8a 100644 (file)
@@ -20,8 +20,8 @@
 
 
 Point<3> periodicity (/*r=*/0,
-                      /*phi=*/2*numbers::PI,
-                      /*z=*/0);
+                            /*phi=*/2*numbers::PI,
+                            /*z=*/0);
 
 class MyCylinderManifold : public ChartManifold<2,3,3>
 {
@@ -29,7 +29,7 @@ public:
   static const int dim = 2;
   static const int spacedim = 3;
   static const int chartdim = 3;
-  
+
   MyCylinderManifold ()
     :
     ChartManifold<dim,spacedim,spacedim>(periodicity)
@@ -46,7 +46,7 @@ public:
 
     const double r   = std::sqrt(x*x + y*y);
     const double phi = std::atan2(y,x);
-    
+
     return Point<3>(r,
                     phi,
                     z);
@@ -60,7 +60,7 @@ public:
     const double r   = chart_point[0];
     const double phi = chart_point[1];
     const double z   = chart_point[2];
-    
+
     return Point<3>(r*std::cos(phi),
                     r*std::sin(phi),
                     z);
@@ -71,7 +71,7 @@ public:
   push_forward_gradient(const Point<spacedim> &chart_point) const
   {
     DerivativeForm<1,spacedim,spacedim> g;
-    
+
     const double r   = chart_point[0];
     const double phi = chart_point[1];
     const double z   = chart_point[2];
@@ -79,15 +79,15 @@ public:
     g[0][0] = std::cos(phi);
     g[0][1] = -r*std::sin(phi);
     g[0][2] = 0;
-    
+
     g[1][0] = std::sin(phi);
     g[1][1] = r*std::cos(phi);
     g[1][2] = 0;
-    
+
     g[2][0] = 0;
     g[2][1] = 0;
     g[2][2] = 1;
-    
+
     return g;
   }
 };
@@ -113,19 +113,19 @@ void test()
 
   // check two points that are horizontal
   test_direction (manifold.push_forward (Point<3>(/*r  =*/2,
-                                                  /*phi=*/3*numbers::PI/4,
-                                                  /*z  =*/-1)),
+                                                          /*phi=*/3*numbers::PI/4,
+                                                          /*z  =*/-1)),
                   manifold.push_forward (Point<3>(/*r  =*/2,
-                                                  /*phi=*/-3*numbers::PI/4,
-                                                  /*z  =*/-1)));
+                                                          /*phi=*/-3*numbers::PI/4,
+                                                          /*z  =*/-1)));
 
   // same but rotated
   test_direction (manifold.push_forward (Point<3>(/*r  =*/2,
-                                                  /*phi=*/-numbers::PI/4,
-                                                  /*z  =*/-1)),
+                                                          /*phi=*/-numbers::PI/4,
+                                                          /*z  =*/-1)),
                   manifold.push_forward (Point<3>(/*r  =*/2,
-                                                  /*phi=*/numbers::PI/4,
-                                                  /*z  =*/-1)));
+                                                          /*phi=*/numbers::PI/4,
+                                                          /*z  =*/-1)));
 }
 
 int main ()

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.