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

Functions

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

Function Documentation

◆ getNumberOfBndCoefficients()

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

Definition at line 188 of file ShapeType.hpp.

189{
190 ASSERTL2(Na > 1, "Order in 'a' direction must be > 1.");
191 ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1.");
192 ASSERTL2(Nc > 1, "Order in 'c' direction must be > 1.");
193 return 2 * Na * Nb + 2 * Na * Nc + 2 * Nb * Nc - 4 * (Na + Nb + Nc) + 8;
194}
#define ASSERTL2(condition, msg)
Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed to...

References ASSERTL2.

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

◆ getNumberOfCoefficients()

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

Definition at line 180 of file ShapeType.hpp.

181{
182 ASSERTL2(Na > 1, "Order in 'a' direction must be > 1.");
183 ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1.");
184 ASSERTL2(Nc > 1, "Order in 'c' direction must be > 1.");
185 return Na * Nb * Nc;
186}

References ASSERTL2.

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