Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
Nektar::LibUtilities::StdTriData Namespace Reference

Functions

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

Function Documentation

int Nektar::LibUtilities::StdTriData::getNumberOfBndCoefficients ( int  Na,
int  Nb 
)
inline

Definition at line 120 of file ShapeType.hpp.

References ASSERTL1, and ASSERTL2.

Referenced by Nektar::MultiRegions::AssemblyMapCG::AssemblyMapCG(), and Nektar::LibUtilities::MeshPartition::CalculateElementWeight().

121  {
122  ASSERTL2(Na > 1, "Order in 'a' direction must be > 1.");
123  ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1.");
124  ASSERTL1(Na <= Nb, "order in 'a' direction is higher "
125  "than order in 'b' direction");
126  return (Na-1) + 2*(Nb-1);
127  }
#define ASSERTL2(condition, msg)
Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed t...
Definition: ErrorUtil.hpp:250
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
Definition: ErrorUtil.hpp:228
int Nektar::LibUtilities::StdTriData::getNumberOfCoefficients ( int  Na,
int  Nb 
)
inline

Definition at line 111 of file ShapeType.hpp.

References ASSERTL1, and ASSERTL2.

Referenced by Nektar::MultiRegions::AssemblyMapCG::AssemblyMapCG(), Nektar::LibUtilities::MeshPartition::CalculateEdgeWeight(), Nektar::LibUtilities::MeshPartition::CalculateElementWeight(), Nektar::LibUtilities::FieldIO::CheckFieldDefinition(), Nektar::LibUtilities::StdPrismData::getNumberOfCoefficients(), Nektar::LibUtilities::GetNumberOfCoefficients(), Nektar::FieldUtils::ProcessEquiSpacedOutput::SetHomogeneousConnectivity(), Nektar::FieldUtils::ProcessEquiSpacedOutput::SetupEquiSpacedField(), Nektar::StdRegions::StdTriExp::v_CalcNumberOfCoefficients(), and Nektar::StdRegions::StdTriExp::v_GenMatrix().

112  {
113  ASSERTL2(Na > 1, "Order in 'a' direction must be > 1.");
114  ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1.");
115  ASSERTL1(Na <= Nb, "order in 'a' direction is higher "
116  "than order in 'b' direction");
117  return Na*(Na+1)/2 + Na*(Nb-Na);
118  }
#define ASSERTL2(condition, msg)
Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed t...
Definition: ErrorUtil.hpp:250
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
Definition: ErrorUtil.hpp:228