Nektar++
Loading...
Searching...
No Matches
Functions
Nektar::LibUtilities::StdNodalTriData Namespace Reference

Functions

constexpr int getNumberOfCoefficients (int Na, int Nb)
 
constexpr int getNumberOfBndCoefficients (int Na, int Nb)
 

Function Documentation

◆ getNumberOfBndCoefficients()

constexpr int Nektar::LibUtilities::StdNodalTriData::getNumberOfBndCoefficients ( int  Na,
int  Nb 
)
inlineconstexpr

Definition at line 150 of file ShapeType.hpp.

151{
152 ASSERTL1(Na == Nb, "order in 'a' direction needs to be the same as "
153 "b' direction for nodaltri");
154 return (Na - 1) + 2 * (Nb - 1);
155}
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....

References ASSERTL1.

◆ getNumberOfCoefficients()

constexpr int Nektar::LibUtilities::StdNodalTriData::getNumberOfCoefficients ( int  Na,
int  Nb 
)
inlineconstexpr

Definition at line 143 of file ShapeType.hpp.

144{
145 ASSERTL1(Na == Nb, "order in 'a' direction needs to be the same as "
146 "b' direction for nodaltri");
147 return Na * (Nb + 1) / 2;
148}

References ASSERTL1.

Referenced by Nektar::LibUtilities::GetNumberOfCoefficients(), and Nektar::LibUtilities::GetNumberOfCoefficients().