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 161 of file ShapeType.hpp.

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

References ASSERTL2.

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

◆ getNumberOfCoefficients()

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

Definition at line 153 of file ShapeType.hpp.

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

References ASSERTL2.

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