Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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::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:240
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
Definition: ErrorUtil.hpp:218
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::LibUtilities::MeshPartition::CalculateElementWeight(), Nektar::LibUtilities::FieldIO::CheckFieldDefinition(), Nektar::LibUtilities::StdPrismData::getNumberOfCoefficients(), Nektar::LibUtilities::GetNumberOfCoefficients(), Nektar::Utilities::ProcessEquiSpacedOutput::SetHomogeneousConnectivity(), Nektar::Utilities::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:240
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
Definition: ErrorUtil.hpp:218