v0.14.0
Public Member Functions | List of all members
PoissonExample::VolRule Struct Reference

Set integration rule to volume elements. More...

#include <tutorials/cor-2to5/src/PoissonOperators.hpp>

Public Member Functions

int operator() (int, int, int p) const
 

Detailed Description

Set integration rule to volume elements.

This rule is used to integrate \(\nabla v \cdot \nabla u\), thus if approximation field and testing field are polynomial order "p", then rule for exact integration is 2*(p-1).

Integration rule is order of polynomial which is calculated exactly. Finite element selects integration method based on return of this function.

Definition at line 834 of file PoissonOperators.hpp.

Member Function Documentation

◆ operator()()

int PoissonExample::VolRule::operator() ( int  ,
int  ,
int  p 
) const
inline

Definition at line 835 of file PoissonOperators.hpp.

835 { return 2 * (p - 1); }

The documentation for this struct was generated from the following file: