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

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

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

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

References ASSERTL2.

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