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

Functions

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

Function Documentation

◆ getNumberOfBndCoefficients()

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

Definition at line 130 of file ShapeType.hpp.

131{
132 ASSERTL2(Na > 1, "Order in 'a' direction must be > 1.");
133 ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1.");
134 ASSERTL1(Na <= Nb, "order in 'a' direction is higher "
135 "than order in 'b' direction");
136 return (Na - 1) + 2 * (Nb - 1);
137}
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
#define ASSERTL2(condition, msg)
Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed to...

References ASSERTL1, and ASSERTL2.

Referenced by Nektar::MultiRegions::AssemblyMapCG::AssemblyMapCG(), and Nektar::SpatialDomains::MeshPartition::CalculateElementWeight().

◆ getNumberOfCoefficients()

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