]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Compare with Triangulation::none instead of true
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 6 Sep 2016 12:14:41 +0000 (14:14 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 6 Sep 2016 12:14:41 +0000 (14:14 +0200)
source/dofs/dof_handler.cc

index fd986a6a285383714820f6086931ff7d0e887126..f89263946330f7b0e0f24cbed58da0f77a892363 100644 (file)
@@ -1156,7 +1156,8 @@ void DoFHandler<dim, spacedim>::distribute_mg_dofs (const FiniteElement<dim, spa
   (void)old_fe;
   Assert(old_fe == &fe, ExcMessage("You are required to use the same FE for level and active DoFs!") );
 
-  Assert((tria->get_mesh_smoothing() & Triangulation<dim, spacedim>::limit_level_difference_at_vertices)==true,
+  Assert(((tria->get_mesh_smoothing() & Triangulation<dim, spacedim>::limit_level_difference_at_vertices)
+          != Triangulation<dim, spacedim>::none),
          ExcMessage("The mesh smoothing requirement 'limit_level_difference_at_vertices' has to be set for using multigrid!"));
 
   clear_mg_space();

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.