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        static const NekDouble kNekUnsetDouble = -9999; 
2        static const NekDouble kNekMinResidInit = 1e16; 
3        static const NekDouble kVertexTheSameDouble  = 1.0e-8; 
4        static const NekDouble kGeomFactorsTol = 1.0e-8; 
5        static const NekDouble kNekZeroTol = 1.0e-12; 
6        static const NekDouble kGeomRightAngleTol = 1e-14; 
7        static const NekDouble kNekSqrtTol = 1.0e-16; 
8        static const NekDouble kNekIterativeTol = 1e-09; 
9        static const NekDouble kNekSparseNonZeroTol = 1e-16; 
10        static const NekDouble kNekMachineEpsilon = std::numeric_limits<NekDouble>::epsilon(); 
12        // Tolerances for mesh generation and CAD handling 
13        static const NekDouble GeomTol = 1E-2;

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.