33 #ifndef __H__UG__LIB_GIRD__DEBUG_UTIL__
34 #define __H__UG__LIB_GIRD__DEBUG_UTIL__
80 template <
class TElem>
87 template <
class TElem,
class TAValue>
89 TAValue& aVal,
bool levelWise);
95 template <
class TElem>
void PrintAttachmentInfo(Grid &grid)
prints information on all attachments of the specified grid
Definition: debug_util.cpp:107
void WriteDebugValuesToFile(const char *filename, Grid &grid, TAValue &aVal, bool levelWise)
Writes level and center of each object together with a custom value to a file.
Definition: debug_util_impl.hpp:98
bool CheckHangingNodeConsistency(Grid &g)
checks whether all constraining and constrained objects are correctly connected.
Definition: debug_util.cpp:264
std::string ElementDebugInfo(const Grid &grid, GridObject *e)
Returns a string containing information on the given element.
Definition: debug_util.cpp:991
bool CheckDistributedParentTypes(MultiGrid &mg)
Check whether local parent types match the type of the actual parent element.
Definition: debug_util.cpp:778
void CheckMultiGridConsistency(MultiGrid &mg)
Checks whether parent child connections in a multi-grid are correct.
Definition: debug_util.cpp:224
int GetGridObjectIndex(Grid &g, TElem *elem)
returns the index of the given element in the given grid.
Definition: debug_util_impl.hpp:83
void PrintElementNumbers(const GridObjectCollection &goc)
prints how many elements of each type exist in the goc.
Definition: debug_util.cpp:47
bool CheckElementConsistency(MultiGrid &mg, Vertex *v)
Checks whether associated elements and associated constrained/constraining objects are fine.
Definition: debug_util.cpp:817
static bool CheckDistributedObjectConstraintTypes(MultiGrid &mg)
Checks whether distributed objects have the same type on all processes.
Definition: debug_util.cpp:569
void PrintGridElementNumbers(Grid &grid)
prints how many elements of each type exist in the grid.
Definition: debug_util.cpp:91
vector3 GetGridObjectCenter(Grid &g, TElem *elem)
Returns the center of the given element (SLOW - for debugging only!)
Definition: debug_util_impl.hpp:47
MathVector< 3, number > vector3
a 3d vector
Definition: ugmath_types.h:72