]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Extend a comment.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Oct 2004 12:52:29 +0000 (12:52 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Oct 2004 12:52:29 +0000 (12:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@9714 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria_boundary.cc

index a0e35d5fb2660f5b4f38cd298e4b48f9d090aa3d..37cd46bbc1c44b81ed95b41dbafc0a6df65e26a9 100644 (file)
@@ -125,6 +125,21 @@ get_new_point_on_quad (const Triangulation<3>::quad_iterator &quad) const
                                    // situation by using existing edge
                                    // midpoints if available, or center() if
                                    // not
+                                   //
+                                   // note that this situation can not happen
+                                   // during mesh refinement, as there the
+                                   // edges are refined first and only then
+                                   // the face. thus, the check whether a line
+                                   // has children does not lead to the
+                                   // situation where the new face midpoints
+                                   // have different positions depending on
+                                   // which of the two cells is refined first.
+                                   //
+                                   // the situation where the edges aren't
+                                   // refined happens when the a higher order
+                                   // MappingQ requests the midpoint of a
+                                   // face, though, and it is for these cases
+                                   // that we need to have the check available
   return (quad->vertex(0) + quad->vertex(1) +
          quad->vertex(2) + quad->vertex(3) +
          (quad->line(0)->has_children() ?

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.