Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
Nektar::LibUtilities::StdPrismData Namespace Reference

Functions

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

Function Documentation

int Nektar::LibUtilities::StdPrismData::getNumberOfBndCoefficients ( int  Na,
int  Nb,
int  Nc 
)
inline

Definition at line 297 of file ShapeType.hpp.

References ASSERTL1.

Referenced by Nektar::LibUtilities::MeshPartition::CalculateElementWeight(), and Nektar::StdRegions::StdPrismExp::v_NumBndryCoeffs().

298  {
299  ASSERTL1(Na > 1, "Order in 'a' direction must be > 1.");
300  ASSERTL1(Nb > 1, "Order in 'b' direction must be > 1.");
301  ASSERTL1(Nc > 1, "Order in 'c' direction must be > 1.");
302  ASSERTL1(Na <= Nc, "Order in 'a' direction is higher "
303  "than order in 'c' direction.");
304 
305  return Na*Nb + 2*Nb*Nc // rect faces
306  + 2*( Na*(Na+1)/2 + (Nc-Na)*Na ) // tri faces
307  - 2*Na - 3*Nb - 4*Nc // less edges
308  + 6; // plus vertices
309  }
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
Definition: ErrorUtil.hpp:191
int Nektar::LibUtilities::StdPrismData::getNumberOfCoefficients ( int  Na,
int  Nb,
int  Nc 
)
inline

Definition at line 286 of file ShapeType.hpp.

References ASSERTL1, and Nektar::LibUtilities::StdTriData::getNumberOfCoefficients().

Referenced by Nektar::LibUtilities::MeshPartition::CalculateElementWeight(), Nektar::LibUtilities::FieldIO::CheckFieldDefinition(), Nektar::LibUtilities::GetNumberOfCoefficients(), Nektar::Utilities::ProcessEquiSpacedOutput::SetupEquiSpacedField(), Nektar::StdRegions::StdPrismExp::v_CalcNumberOfCoefficients(), and Nektar::StdRegions::StdPrismExp::v_GenMatrix().

287  {
288  ASSERTL1(Na > 1, "Order in 'a' direction must be > 1.");
289  ASSERTL1(Nb > 1, "Order in 'b' direction must be > 1.");
290  ASSERTL1(Nc > 1, "Order in 'c' direction must be > 1.");
291  ASSERTL1(Na <= Nc, "Order in 'a' direction is higher "
292  "than order in 'c' direction.");
293 
294  return Nb*StdTriData::getNumberOfCoefficients(Na,Nc);
295  }
int getNumberOfCoefficients(int Na, int Nb, int Nc)
Definition: ShapeType.hpp:286
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
Definition: ErrorUtil.hpp:191