Nektar++
Functions
Nektar::LibUtilities::StdTriData Namespace Reference

Functions

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

Function Documentation

◆ getNumberOfBndCoefficients()

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

Definition at line 125 of file ShapeType.hpp.

References ASSERTL1, and ASSERTL2.

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

126  {
127  ASSERTL2(Na > 1, "Order in 'a' direction must be > 1.");
128  ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1.");
129  ASSERTL1(Na <= Nb, "order in 'a' direction is higher "
130  "than order in 'b' direction");
131  return (Na-1) + 2*(Nb-1);
132  }
#define ASSERTL2(condition, msg)
Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed t...
Definition: ErrorUtil.hpp:274
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
Definition: ErrorUtil.hpp:250

◆ getNumberOfCoefficients()

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

Definition at line 113 of file ShapeType.hpp.

References ASSERTL1, and ASSERTL2.

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

114  {
115  // Note these assertions have been set to > 0 because
116  // it can also be used to evaluate face expansion
117  // order
118  ASSERTL2(Na > 0, "Order in 'a' direction must be > 0.");
119  ASSERTL2(Nb > 0, "Order in 'b' direction must be > 0.");
120  ASSERTL1(Na <= Nb, "order in 'a' direction is higher "
121  "than order in 'b' direction");
122  return Na*(Na+1)/2 + Na*(Nb-Na);
123  }
#define ASSERTL2(condition, msg)
Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed t...
Definition: ErrorUtil.hpp:274
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
Definition: ErrorUtil.hpp:250