Nektar++
Functions
Nektar::LibUtilities::StdHexData Namespace Reference

Functions

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

Function Documentation

◆ getNumberOfBndCoefficients()

int Nektar::LibUtilities::StdHexData::getNumberOfBndCoefficients ( int  Na,
int  Nb,
int  Nc 
)
inline

Definition at line 164 of file ShapeType.hpp.

165 {
166  ASSERTL2(Na > 1, "Order in 'a' direction must be > 1.");
167  ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1.");
168  ASSERTL2(Nc > 1, "Order in 'c' direction must be > 1.");
169  return 2 * Na * Nb + 2 * Na * Nc + 2 * Nb * Nc - 4 * (Na + Nb + Nc) + 8;
170 }
#define ASSERTL2(condition, msg)
Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed to...
Definition: ErrorUtil.hpp:272

References ASSERTL2.

Referenced by Nektar::SpatialDomains::MeshPartition::CalculateElementWeight().

◆ getNumberOfCoefficients()

int Nektar::LibUtilities::StdHexData::getNumberOfCoefficients ( int  Na,
int  Nb,
int  Nc 
)
inline

Definition at line 156 of file ShapeType.hpp.

157 {
158  ASSERTL2(Na > 1, "Order in 'a' direction must be > 1.");
159  ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1.");
160  ASSERTL2(Nc > 1, "Order in 'c' direction must be > 1.");
161  return Na * Nb * Nc;
162 }

References ASSERTL2.

Referenced by Nektar::SpatialDomains::MeshPartition::CalculateElementWeight(), Nektar::FieldUtils::ProcessEquiSpacedOutput::Process(), and Nektar::StdRegions::StdHexExp::v_GenMatrix().