]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Address Timo's concerns during review. 614/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 28 Feb 2015 02:09:46 +0000 (20:09 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 28 Feb 2015 02:09:46 +0000 (20:09 -0600)
source/grid/tria.cc

index ee06cbaa4e7ea500912d1c0548c783a2c855d06f..fdb58da9412d4c910132ea0a3074d1b89784a8ac 100644 (file)
@@ -8767,7 +8767,8 @@ template <int dim, int spacedim>
 void
 Triangulation<dim, spacedim>::set_mesh_smoothing(const MeshSmoothing mesh_smoothing)
 {
-  Assert (n_levels() == 0, ExcTriangulationNotEmpty (vertices.size(), levels.size()));
+  Assert (n_levels() == 0,
+          ExcTriangulationNotEmpty (vertices.size(), levels.size()));
   smooth_grid=mesh_smoothing;
 }
 
@@ -8932,10 +8933,10 @@ void
 Triangulation<dim, spacedim>::
 copy_triangulation (const Triangulation<dim, spacedim> &old_tria)
 {
-  Assert (vertices.size() == 0, ExcTriangulationNotEmpty(vertices.size(), levels.size()));
-  Assert (levels.size () == 0, ExcTriangulationNotEmpty(vertices.size(), levels.size()));
-  Assert (faces == NULL, ExcTriangulationNotEmpty(vertices.size(), levels.size()));
-
+  Assert ((vertices.size() == 0) &&
+          (levels.size () == 0) &&
+          (faces == NULL),
+          ExcTriangulationNotEmpty(vertices.size(), levels.size()));
   Assert (old_tria.levels.size() != 0, ExcInternalError());
   Assert (old_tria.vertices.size() != 0, ExcInternalError());
   Assert (dim == 1 || old_tria.faces != NULL, ExcInternalError());
@@ -9015,9 +9016,10 @@ create_triangulation (const std::vector<Point<spacedim> >    &v,
                       const std::vector<CellData<dim> > &cells,
                       const SubCellData &subcelldata)
 {
-  Assert (vertices.size() == 0, ExcTriangulationNotEmpty(vertices.size(), levels.size()));
-  Assert (levels.size() == 0, ExcTriangulationNotEmpty(vertices.size(), levels.size()));
-  Assert (faces == NULL, ExcTriangulationNotEmpty(vertices.size(), levels.size()));
+  Assert ((vertices.size() == 0) &&
+          (levels.size () == 0) &&
+          (faces == NULL),
+          ExcTriangulationNotEmpty(vertices.size(), levels.size()));
   // check that no forbidden arrays
   // are used
   Assert (subcelldata.check_consistency(dim), ExcInternalError());

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.