Nektar++
Functions
Nektar::LibUtilities::StdQuadData Namespace Reference

Functions

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

Function Documentation

◆ getNumberOfBndCoefficients()

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

Definition at line 143 of file ShapeType.hpp.

144{
145 ASSERTL2(Na > 1, "Order in 'a' direction must be > 1.");
146 ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1.");
147 return 2 * (Na - 1) + 2 * (Nb - 1);
148}
#define ASSERTL2(condition, msg)
Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed to...
Definition: ErrorUtil.hpp:265

References ASSERTL2.

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

◆ getNumberOfCoefficients()

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

Definition at line 133 of file ShapeType.hpp.

134{
135 // Note these assertions have been set to > 0 because
136 // it can also be used to evaluate face expansion
137 // order
138 ASSERTL2(Na > 0, "Order in 'a' direction must be > 0.");
139 ASSERTL2(Nb > 0, "Order in 'b' direction must be > 0.");
140 return Na * Nb;
141}

References ASSERTL2.

Referenced by Nektar::MultiRegions::AssemblyMapCG::AssemblyMapCG(), Nektar::SpatialDomains::MeshPartition::CalculateEdgeWeight(), Nektar::SpatialDomains::MeshPartition::CalculateElementWeight(), Nektar::LibUtilities::GetNumberOfDataPoints(), Nektar::LocalRegions::Expansion3D::GetTraceInverseBoundaryMap(), Nektar::FieldUtils::ProcessEquiSpacedOutput::SetHomogeneousConnectivity(), Nektar::StdRegions::StdQuadExp::v_GenMatrix(), and Nektar::FieldUtils::ProcessEquiSpacedOutput::v_Process().