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

149 {
150  ASSERTL2(Na > 1, "Order in 'a' direction must be > 1.");
151  ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1.");
152  return 2 * (Na - 1) + 2 * (Nb - 1);
153 }
#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 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 138 of file ShapeType.hpp.

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

References ASSERTL2.

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