4.1 BasicConst

This directory contains two important files for all of Nektar++: NektarUnivConsts.hpp and NektarUnivTypeDefs.hpp.

The file NektarUnivConsts.hpp contains various default constants used within Nektar++ as seen here:

1 
2// Tolerances 
3static const NekDouble kVertexTheSameDouble = 1.0e-08; 
4static const NekDouble kGeomFactorsTol      = 1.0e-08; 
5static const NekDouble kNekZeroTol          = 1.0e-12; 
6static const NekDouble kNekIterativeTol     = 1.0e-09; 
7static const NekDouble kNekMachineEpsilon = 
8    std::numeric_limits<NekDouble>::epsilon(); 
9static const NekDouble kNekSparseNonZeroTol = kNekMachineEpsilon; 
10 
11// Tolerances for mesh generation and CAD handling 
12static const NekDouble GeomTol = 1.0e-02; 
13static const NekDouble CoinTol = 1.0e-06;

The file NektarUnivTypeDefs.hpp contains the low level typedefs such as: NekDouble, NekInt, OneD, TwoD, ThreeD, FourD, and enumerations such as Direction (xDir, yDir and zDir) and OutputFormat.