Nektar++
Loading...
Searching...
No Matches
Functions
Nektar::LibUtilities::StdQuadData Namespace Reference

Functions

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

Function Documentation

◆ getNumberOfBndCoefficients()

constexpr int Nektar::LibUtilities::StdQuadData::getNumberOfBndCoefficients ( int  Na,
int  Nb 
)
inlineconstexpr

Definition at line 170 of file ShapeType.hpp.

171{
172 ASSERTL2(Na > 1, "Order in 'a' direction must be > 1.");
173 ASSERTL2(Nb > 1, "Order in 'b' direction must be > 1.");
174 return 2 * (Na - 1) + 2 * (Nb - 1);
175}
#define ASSERTL2(condition, msg)
Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed to...

References ASSERTL2.

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

◆ getNumberOfCoefficients()

constexpr int Nektar::LibUtilities::StdQuadData::getNumberOfCoefficients ( int  Na,
int  Nb 
)
inlineconstexpr

Definition at line 160 of file ShapeType.hpp.

161{
162 // Note these assertions have been set to > 0 because
163 // it can also be used to evaluate face expansion
164 // order
165 ASSERTL2(Na > 0, "Order in 'a' direction must be > 0.");
166 ASSERTL2(Nb > 0, "Order in 'b' direction must be > 0.");
167 return Na * Nb;
168}

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