Skip to content

Commit

Permalink
Merge pull request #15718 from bergbauer/empty_quadrature
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Jul 11, 2023
2 parents f7f3472 + 130c1a5 commit 00eea66
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions include/deal.II/base/quadrature.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,12 @@ class Quadrature : public Subscriptor
unsigned int
size() const;

/**
* Return if quadrature is empty.
*/
bool
empty() const;

/**
* Return the <tt>i</tt>th quadrature point.
*/
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 00eea66

Please sign in to comment.