17 #include "treenode2vtk.h" 25 #define NUM_CHILDREN 4 26 #define ROTATION_OFFSET 8 28 #define NUM_CHILDREN 8 29 #define ROTATION_OFFSET 16 48 bool isSorted(
const std::vector<T >& nodes);
51 bool isSorted_all_pairs(
const std::vector<T > & nodes);
55 bool isSorted(T * nodes,
unsigned int sz);
59 bool isNAN(
const T * in,
const unsigned int sz);
63 bool isBlockNAN(
const T * in,
const unsigned int* sz);
67 bool isBlockNAN(
const T * in,
const unsigned int* sz,
unsigned int flag);
76 bool isUniqueAndSorted(
const std::vector<T >& nodes);
80 bool containsAncestor(
const std::vector<T > & nodes);
84 bool isComplete (
const std::vector<T>& nodes);
90 bool checkE2EMapping(
const std::vector<unsigned int >& E2EMap,
const std::vector<T>& allNodes,
unsigned int localBegin,
unsigned int localEnd ,
unsigned int k_s,
unsigned numDirections);
99 bool checkE2NMapping(
const std::vector<unsigned int >& E2EMap ,
const std::vector<unsigned int >& E2NMap,
const std::vector<T>& allNodes,
unsigned int numDirections,
unsigned int elementOrder);
115 bool isSorted(
const std::vector<T>& nodes, MPI_Comm comm);
118 bool isUniqueAndSorted(
const std::vector<T >& nodes,MPI_Comm comm) ;
121 template <
typename T>
122 bool containsAncestor(
const std::vector<T > &nodes, MPI_Comm comm);
125 template <
typename T>
126 bool isComplete (
const std::vector<T>& nodes, MPI_Comm comm);
145 bool isLinear(
const std::vector<T >& nodes) ;
148 bool isBalanced(
unsigned int dim,
unsigned int maxDepth,
char* failFileName,
149 const std::vector<T>& nodes,
bool incCorn,
unsigned int maxLevDiff) ;
152 bool isBalancedInternal(
unsigned int dim,
unsigned int maxDepth,
153 char*failFileName,
const std::vector<T> & nodes,
154 TreeNode holder,
bool incCorn,
unsigned int maxLevDiff) ;
169 template<
typename T,
typename B>
170 bool isBlockListValid(
const std::vector<T>& pNodes, std::vector<T> & blockList,
unsigned int d_min,
unsigned int d_max,
unsigned int nBegin,
unsigned int nEnd);
191 #include "testUtils.tcc" bool isBlockListValid(const std::vector< T > &pNodes, std::vector< T > &blockList, unsigned int d_min, unsigned int d_max, unsigned int nBegin, unsigned int nEnd)
for a given sorted 2:1 balanced octree and a block list this procedure checks that for each block...
Simple class to manage async data transfer in the ODA class.
Definition: asyncExchangeContex.h:16
bool isNAN(const T *in, const unsigned int sz)
checks whether the numeric array constains nan values.
A collection of functions for debugging.
bool checkE2EMapping(const std::vector< unsigned int > &E2EMap, const std::vector< T > &allNodes, unsigned int localBegin, unsigned int localEnd, unsigned int k_s, unsigned numDirections)
Collection of Generic Sequential Functions.
Collection of Generic Parallel Functions: Sorting, Partitioning, Searching,...
Definition: zoltan_hilbert.h:72
bool isBlockNAN(const T *in, const unsigned int *sz)
checks whether the numeric array constains nan values. for block local region
bool checkE2NMapping(const std::vector< unsigned int > &E2EMap, const std::vector< unsigned int > &E2NMap, const std::vector< T > &allNodes, unsigned int numDirections, unsigned int elementOrder)
: Check whether the E2N mapping is correct based on the DG indexing. This assumes that StensilSz is 1...