From: Luca Heltai Date: Fri, 10 May 2019 16:06:11 +0000 (+0200) Subject: Add constant get_boundary_points(). X-Git-Tag: v9.1.0-rc1~70^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fd56db8e5a73e1981c04f573d3dd0a9d0510fc3;p=dealii.git Add constant get_boundary_points(). --- diff --git a/include/deal.II/base/bounding_box.h b/include/deal.II/base/bounding_box.h index b6962409b1..d0ba528574 100644 --- a/include/deal.II/base/bounding_box.h +++ b/include/deal.II/base/bounding_box.h @@ -127,6 +127,12 @@ public: std::pair, Point> & get_boundary_points(); + /** + * Return a const reference to the boundary_points + */ + const std::pair, Point> & + get_boundary_points() const; + /** * Check if the current object and @p other_bbox are neighbors, i.e. if the boxes * have dimension spacedim, check if their intersection is non empty. diff --git a/include/deal.II/fe/mapping.h b/include/deal.II/fe/mapping.h index acf799a63f..f28fb3237b 100644 --- a/include/deal.II/fe/mapping.h +++ b/include/deal.II/fe/mapping.h @@ -380,7 +380,7 @@ public: * true bounding box, since it does not take into account curved faces, and it * may be smaller than the true bounding box. * - * @param[in] cell The cell for which you want to compute the center + * @param[in] cell The cell for which you want to compute the bounding box * * @author Luca Heltai, 2019. */ diff --git a/source/base/bounding_box.cc b/source/base/bounding_box.cc index 006721f78c..12123de5d4 100644 --- a/source/base/bounding_box.cc +++ b/source/base/bounding_box.cc @@ -153,6 +153,15 @@ BoundingBox::get_boundary_points() +template +const std::pair, Point> & +BoundingBox::get_boundary_points() const +{ + return this->boundary_points; +} + + + template double BoundingBox::volume() const diff --git a/source/fe/mapping.cc b/source/fe/mapping.cc index 3716dac5d1..612d71c9fb 100644 --- a/source/fe/mapping.cc +++ b/source/fe/mapping.cc @@ -14,6 +14,8 @@ // --------------------------------------------------------------------- +#include + #include #include