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:

1static const NekDouble kVertexTheSameDouble = 1.0e-08; 
2static const NekDouble kGeomFactorsTol      = 1.0e-08; 
3static const NekDouble kNekZeroTol          = 1.0e-12; 
4static const NekDouble kNekIterativeTol     = 1.0e-09; 
5static const NekDouble kNekMachineEpsilon = 
6    std::numeric_limits<NekDouble>::epsilon(); 
7static const NekDouble kNekSparseNonZeroTol = kNekMachineEpsilon; 
8 
9// Factor for tolerance for floating point comparison 
10static const unsigned int kNekFloatCompFact = 4; 
11 
12// Constants for minimisation functions 
13static const NekDouble kFindDistanceMin     = 5e-05;
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 FlagType.