]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make code easier to read. 18031/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 27 Jan 2025 17:54:11 +0000 (10:54 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 27 Jan 2025 17:56:18 +0000 (10:56 -0700)
source/grid/grid_generator.cc

index 591a04566668f7c3c2ff02fd8c6f6f82317d8872..285c66f11c4645124cd99ecb0493578c8168a913 100644 (file)
@@ -4308,14 +4308,14 @@ namespace GridGenerator
         // to the radial cells
         const double          a           = 1. / (1 + std::sqrt(2.0));
         const Point<spacedim> vertices[8] = {
-          p + embed_point(-1, -1) * (radius / std::sqrt(2.0)),
-          p + embed_point(+1, -1) * (radius / std::sqrt(2.0)),
-          p + embed_point(-1, -1) * (radius / std::sqrt(2.0) * a),
-          p + embed_point(+1, -1) * (radius / std::sqrt(2.0) * a),
-          p + embed_point(-1, +1) * (radius / std::sqrt(2.0) * a),
-          p + embed_point(+1, +1) * (radius / std::sqrt(2.0) * a),
-          p + embed_point(-1, +1) * (radius / std::sqrt(2.0)),
-          p + embed_point(+1, +1) * (radius / std::sqrt(2.0))};
+          p + embed_point(-1., -1.) * (radius / std::sqrt(2.0)),
+          p + embed_point(+1., -1.) * (radius / std::sqrt(2.0)),
+          p + embed_point(-1., -1.) * (radius / std::sqrt(2.0) * a),
+          p + embed_point(+1., -1.) * (radius / std::sqrt(2.0) * a),
+          p + embed_point(-1., +1.) * (radius / std::sqrt(2.0) * a),
+          p + embed_point(+1., +1.) * (radius / std::sqrt(2.0) * a),
+          p + embed_point(-1., +1.) * (radius / std::sqrt(2.0)),
+          p + embed_point(+1., +1.) * (radius / std::sqrt(2.0))};
 
         std::vector<CellData<2>> cells(5, CellData<2>());
 
@@ -4324,7 +4324,7 @@ namespace GridGenerator
             for (unsigned int j = 0; j < 4; ++j)
               cells[i].vertices[j] = circle_cell_vertices[i][j];
             cells[i].material_id = 0;
-            cells[i].manifold_id = i == 2 ? numbers::flat_manifold_id : 1;
+            cells[i].manifold_id = (i == 2 ? numbers::flat_manifold_id : 1);
           }
 
         tria.create_triangulation(std::vector<Point<spacedim>>(

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.