NeoPZ
TPZTopologyUtils.h
Go to the documentation of this file.
1 #ifndef TOPOLOGYUTILS_H
2 #define TOPOLOGYUTILS_H
3 #include "pzreal.h"
4 #include <limits>
5 #include <pzerror.h>
6 #include "pzvec.h"
7 
8 template<class T>
9 class TPZVec;
10 
11 namespace pztopology{
12 // class Settings{
13 // private:
14 // Settings() = default;
15 // REAL gTolerance;
16 // public:
17 // static Settings &GetSettings(){static Settings fOnlyInstance;return fOnlyInstance;}
18 // Settings(Settings const&) = delete;
19 // void operator=(Settings const&) = delete;
20 // };// if, in the future, there are more topology settings to be adjusted, this model of singleton can be used.
21 
22  typedef std::numeric_limits< REAL > dbl;
23  static REAL gTolerance = pow(10,(-1 * (dbl::max_digits10- 5)));
24 
25  REAL GetTolerance();
26 
27  void SetTolerance(const REAL &tol);
28 
29  template<class Topology>
30  extern void GetPermutation(const int permutationIndex, TPZVec<int> &permutation);
31 }
32 
33 #endif
Templated vector implementation.
Defines PZError.
This class implements a simple vector storage scheme for a templated class T. Utility.
Definition: pzgeopoint.h:19
static REAL gTolerance
static const double tol
Definition: pzgeoprism.cpp:23
Groups all classes defining the structure of the master element.
Definition: PrismExtend.cpp:15
void SetTolerance(const REAL &tol)
std::numeric_limits< REAL > dbl
TPZFlopCounter pow(const TPZFlopCounter &orig, const TPZFlopCounter &xp)
Returns the power and increments the counter of the power.
Definition: pzreal.h:487
Contains the declaration of TPZFlopCounter class and TPZCounter struct.
void GetPermutation(const int permutationIndex, TPZVec< int > &permutation)