From: wolf Date: Thu, 18 Feb 1999 16:06:53 +0000 (+0000) Subject: Fix the behaviour of the new boundary a bit and update the documentation. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26b433c212c8e50c79a71927bee8fecf91139e4a;p=dealii-svn.git Fix the behaviour of the new boundary a bit and update the documentation. git-svn-id: https://svn.dealii.org/trunk@838 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/grid/tria_boundary.h b/deal.II/deal.II/include/grid/tria_boundary.h index ec61dc0a1c..d6153543fe 100644 --- a/deal.II/deal.II/include/grid/tria_boundary.h +++ b/deal.II/deal.II/include/grid/tria_boundary.h @@ -132,17 +132,26 @@ template class StraightBoundary : public Boundary { public: /** + * Let the new point be the arithmetic + * mean of the two vertices of the line. + * * Refer to the general documentation of * this class and the documentation of the - * base class. + * base class for more information. */ virtual Point get_new_point_on_line (const typename Triangulation::line_iterator &line) const; /** + * Let the new point be the arithmetic mean + * of the four vertices of this quad and + * the four midpoints of the lines, which + * are already created at the time of calling + * this function. + * * Refer to the general documentation of * this class and the documentation of the - * base class. + * base class for more information. */ virtual Point get_new_point_on_quad (const typename Triangulation::quad_iterator &quad) const; diff --git a/deal.II/deal.II/source/grid/tria_boundary.cc b/deal.II/deal.II/source/grid/tria_boundary.cc index 6fa6609c66..7a076d862e 100644 --- a/deal.II/deal.II/source/grid/tria_boundary.cc +++ b/deal.II/deal.II/source/grid/tria_boundary.cc @@ -55,7 +55,11 @@ Point StraightBoundary::get_new_point_on_quad (const typename Triangulation::quad_iterator &quad) const { return (quad->vertex(0) + quad->vertex(1) + - quad->vertex(2) + quad->vertex(3)) / 4; + quad->vertex(2) + quad->vertex(3) + + quad->line(0)->child(0)->vertex(1) + + quad->line(1)->child(0)->vertex(1) + + quad->line(2)->child(0)->vertex(1) + + quad->line(3)->child(0)->vertex(1)) / 8; }; #endif