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

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

References ASSERTL1, and ASSERTL2.

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

◆ getNumberOfCoefficients()

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

Definition at line 114 of file ShapeType.hpp.

115 {
116  // Note these assertions have been set to > 0 because
117  // it can also be used to evaluate face expansion
118  // order
119  ASSERTL2(Na > 0, "Order in 'a' direction must be > 0.");
120  ASSERTL2(Nb > 0, "Order in 'b' direction must be > 0.");
121  ASSERTL1(Na <= Nb, "order in 'a' direction is higher "
122  "than order in 'b' direction");
123  return Na * (Na + 1) / 2 + Na * (Nb - Na);
124 }

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::SetHomogeneousConnectivity(), Nektar::StdRegions::StdTriExp::v_CalcNumberOfCoefficients(), Nektar::StdRegions::StdTriExp::v_GenMatrix(), and Nektar::FieldUtils::ProcessEquiSpacedOutput::v_Process().