deal.II version GIT relicensing-2167-g9622207b8f 2024-11-21 12:40:00+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
NonMatching::internal::QuadratureGeneratorImplementation::ExtendableQuadrature< dim > Class Template Reference
Inheritance diagram for NonMatching::internal::QuadratureGeneratorImplementation::ExtendableQuadrature< dim >:
Inheritance graph
[legend]

Public Member Functions

 ExtendableQuadrature ()=default
 
 ExtendableQuadrature (const Quadrature< dim > &quadrature)
 
void clear ()
 
void push_back (const Point< dim > &point, const double weight)
 

Detailed Description

template<int dim>
class NonMatching::internal::QuadratureGeneratorImplementation::ExtendableQuadrature< dim >

This is a special Quadrature class with a push_back() method for conveniently adding a point with an associated weight.

Since we build the quadrature rules in step-wise fashion, it's easier to use this class than to pass around two vectors: std::vector<Point<dim>>, std::vector<double>. Further, two std::vectors could accidentally end up with different sizes. Using push_back we make sure that the number of points and weights are the same.

Definition at line 743 of file quadrature_generator.h.

Constructor & Destructor Documentation

◆ ExtendableQuadrature() [1/2]

template<int dim>
NonMatching::internal::QuadratureGeneratorImplementation::ExtendableQuadrature< dim >::ExtendableQuadrature ( )
default

Constructor, creates an empty quadrature rule with no points.

◆ ExtendableQuadrature() [2/2]

template<int dim>
NonMatching::internal::QuadratureGeneratorImplementation::ExtendableQuadrature< dim >::ExtendableQuadrature ( const Quadrature< dim > &  quadrature)

Constructor, copies the incoming Quadrature.

Definition at line 639 of file quadrature_generator.cc.

Member Function Documentation

◆ clear()

Clears weights and points vectors.

Definition at line 648 of file quadrature_generator.cc.

◆ push_back()

template<int dim>
void NonMatching::internal::QuadratureGeneratorImplementation::ExtendableQuadrature< dim >::push_back ( const Point< dim > &  point,
const double  weight 
)

Add a point with an associated weight to the quadrature.

Definition at line 658 of file quadrature_generator.cc.


The documentation for this class was generated from the following files: