18 typedef std::numeric_limits< REAL >
dbl;
20 std::cout.precision(dbl::max_digits10);
21 std::cout<<
"Invalid tolerance parameter for topologies. Trying to set: "<<tol<<std::endl;
22 std::cout<<
"This value will be ignored. Tolerance is set at: "<<
gTolerance<<std::endl;
26 template<
class Topology>
29 if(permutationIndex < 0 || permutationIndex >= Topology::NPermutations){
30 PZError<<
"GetPermutation: invalid parameter: permutationIndex = "<<permutationIndex<<std::endl;
31 PZError<<
"Aborting..."<<std::endl;
35 if(permutation.
size() != Topology::NSides) permutation.
Resize(Topology::NSides,-1);
36 for(
int i = 0; i < Topology::NSides; i++) permutation[i] = Topology::fPermutations[permutationIndex][i];
41 template void pztopology::GetPermutation<pztopology::TPZPoint>(
const int permutationIndex,
TPZVec<int> &permutation);
42 template void pztopology::GetPermutation<pztopology::TPZLine>(
const int permutationIndex,
TPZVec<int> &permutation);
43 template void pztopology::GetPermutation<pztopology::TPZTriangle>(
const int permutationIndex,
TPZVec<int> &permutation);
44 template void pztopology::GetPermutation<pztopology::TPZQuadrilateral>(
const int permutationIndex,
TPZVec<int> &permutation);
45 template void pztopology::GetPermutation<pztopology::TPZTetrahedron>(
const int permutationIndex,
TPZVec<int> &permutation);
46 template void pztopology::GetPermutation<pztopology::TPZCube>(
const int permutationIndex,
TPZVec<int> &permutation);
47 template void pztopology::GetPermutation<pztopology::TPZPrism>(
const int permutationIndex,
TPZVec<int> &permutation);
48 template void pztopology::GetPermutation<pztopology::TPZPyramid>(
const int permutationIndex,
TPZVec<int> &permutation);
Contains the TPZPoint class which defines the topology of a point.
Contains the TPZTriangle class which defines the topology of a triangle.
Contains the TPZTetrahedron class which defines the topology of the tetrahedron element.
int64_t size() const
Returns the number of elements of the vector.
virtual void Resize(const int64_t newsize, const T &object)
Resizes the vector object reallocating the necessary storage, copying the existing objects to the new...
Groups all classes defining the structure of the master element.
void SetTolerance(const REAL &tol)
#define DebugStop()
Returns a message to user put a breakpoint in.
Contains the TPZQuadrilateral class which defines the topology of a quadrilateral element...
std::numeric_limits< REAL > dbl
Contains the TPZPyramid class which defines the topology of a pyramid element.
Contains the TPZCube class which defines the topology of the hexahedron element.
Contains the TPZLine class which defines the topology of a line element.
Contains the TPZPrism class which defines the topology of a Prism.
void GetPermutation(const int permutationIndex, TPZVec< int > &permutation)
#define PZError
Defines the output device to error messages and the DebugStop() function.