Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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

Definition at line 159 of file ShapeType.hpp.

References ASSERTL2.

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

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 2*Na*Nb + 2*Na*Nc + 2*Nb*Nc
165  - 4*(Na + Nb + Nc) + 8;
166  }
#define ASSERTL2(condition, msg)
Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed t...
Definition: ErrorUtil.hpp:250
int Nektar::LibUtilities::StdHexData::getNumberOfCoefficients ( int  Na,
int  Nb,
int  Nc 
)
inline

Definition at line 151 of file ShapeType.hpp.

References ASSERTL2.

Referenced by Nektar::LibUtilities::MeshPartition::CalculateElementWeight(), and Nektar::FieldUtils::ProcessEquiSpacedOutput::SetupEquiSpacedField().

152  {
153  ASSERTL2(Na > 1, "Order in 'a' direction must be > 1.");
154  ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1.");
155  ASSERTL2(Nc > 1, "Order in 'c' direction must be > 1.");
156  return Na*Nb*Nc;
157  }
#define ASSERTL2(condition, msg)
Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed t...
Definition: ErrorUtil.hpp:250