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

125 {
126  ASSERTL2(Na > 1, "Order in 'a' direction must be > 1.");
127  ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1.");
128  ASSERTL1(Na <= Nb, "order in 'a' direction is higher "
129  "than order in 'b' direction");
130  return (Na - 1) + 2 * (Nb - 1);
131 }
#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 112 of file ShapeType.hpp.

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

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().