]> https://gitweb.dealii.org/ - dealii.git/commitdiff
empty() function for Quadrature 15718/head
authorMaximilian Bergbauer <maximilian.bergbauer@tum.de>
Tue, 11 Jul 2023 11:09:24 +0000 (13:09 +0200)
committerMaximilian Bergbauer <maximilian.bergbauer@tum.de>
Tue, 11 Jul 2023 11:09:24 +0000 (13:09 +0200)
include/deal.II/base/quadrature.h

index dbcd1d926471b77930156536d2286ae975df1bcf..e83b89682f45a2c524d93a28be7269e9675c7b29 100644 (file)
@@ -250,6 +250,12 @@ public:
   unsigned int
   size() const;
 
+  /**
+   * Return if quadrature is empty.
+   */
+  bool
+  empty() const;
+
   /**
    * Return the <tt>i</tt>th quadrature point.
    */
@@ -461,6 +467,16 @@ Quadrature<dim>::size() const
 }
 
 
+
+template <int dim>
+inline bool
+Quadrature<dim>::empty() const
+{
+  return weights.empty();
+}
+
+
+
 template <int dim>
 inline const Point<dim> &
 Quadrature<dim>::point(const unsigned int i) const

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.