From: Maximilian Bergbauer Date: Tue, 11 Jul 2023 11:09:24 +0000 (+0200) Subject: empty() function for Quadrature X-Git-Tag: relicensing~699^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=130c1a550d178993256e518dc48db3944365ecb1;p=dealii.git empty() function for Quadrature --- diff --git a/include/deal.II/base/quadrature.h b/include/deal.II/base/quadrature.h index dbcd1d9264..e83b89682f 100644 --- a/include/deal.II/base/quadrature.h +++ b/include/deal.II/base/quadrature.h @@ -250,6 +250,12 @@ public: unsigned int size() const; + /** + * Return if quadrature is empty. + */ + bool + empty() const; + /** * Return the ith quadrature point. */ @@ -461,6 +467,16 @@ Quadrature::size() const } + +template +inline bool +Quadrature::empty() const +{ + return weights.empty(); +} + + + template inline const Point & Quadrature::point(const unsigned int i) const