]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Revert order of conditional to allow for a faster path out.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 27 Mar 2007 15:20:03 +0000 (15:20 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 27 Mar 2007 15:20:03 +0000 (15:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@14600 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria.cc

index 60f83ccc359608d717ae222312ddaa8393832417..f9671a5e432ca1ce8f1545d17d68fdeebabdab62 100644 (file)
@@ -7679,9 +7679,9 @@ void Triangulation<3>::prepare_refinement_dim_dependent ()
                                                     // level to find neighbors of
                                                     // this cell and edge
                    for (cell_iterator edge_neighbor=begin(cell->level());
-                        ((edge_neighbor != end(cell->level()))
+                        ((cant_be_coarsened == false)
                          &&
-                         (cant_be_coarsened == false));
+                         (edge_neighbor != end(cell->level())));
                         ++edge_neighbor)
                      if (edge_neighbor != cell)
                        for (unsigned int e=0; e<GeometryInfo<dim>::lines_per_cell; ++e)

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.