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

References ASSERTL2.

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

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

◆ getNumberOfCoefficients()

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

Definition at line 159 of file ShapeType.hpp.

References ASSERTL2.

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

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