]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify a couple of places.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 15 Feb 2011 15:23:14 +0000 (15:23 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 15 Feb 2011 15:23:14 +0000 (15:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@23361 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/numerics/error_estimator.cc

index 16bce12dd56dd0fbb1c73d25d6b3d3b97ffe491b..0c6f4127a3bd2cc94669a3b0f192c06dfaa8ae3b 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -871,7 +871,7 @@ namespace internal
                                           // then do nothing since we
                                           // integrate over the subfaces when
                                           // we visit the coarse cells.
-         if (cell->at_boundary(face_no) == false)
+         if (face->at_boundary() == false)
            if (cell->neighbor_is_coarser(face_no))
              continue;
 
@@ -884,11 +884,9 @@ namespace internal
                                           // cells, we enter this face into
                                           // the list of faces with
                                           // contribution zero.
-         const unsigned char boundary_indicator
-           = face->boundary_indicator();
          if (face->at_boundary()
              &&
-             (parallel_data.neumann_bc->find(boundary_indicator) ==
+             (parallel_data.neumann_bc->find(face->boundary_indicator()) ==
               parallel_data.neumann_bc->end()))
            {
              local_face_integrals[face]

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.