Loading [MathJax]/extensions/tex2jax.js
ug4
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
debug_util_impl.hpp File Reference
#include <fstream>
#include <sstream>
#include "lib_grid/lg_base.h"
#include "lib_grid/algorithms/geom_obj_util/geom_obj_util.h"
#include "common/util/table.h"
#include "lib_grid/tools/periodic_boundary_manager.h"

Go to the source code of this file.

Namespaces

namespace  ug
 the ug namespace
 

Functions

template<class TElem >
int ug::GetGridObjectIndex (Grid &g, TElem *elem)
 returns the index of the given element in the given grid.
 
template<class TElem , class TAValue >
void ug::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.
 
vector3 ug::GetGridObjectCenter (Grid &g, GridObject *elem)
 Returns the center of the given element (SLOW - for debugging only!)
 
template<class TElem >
vector3 ug::GetGridObjectCenter (Grid &g, TElem *elem)
 Returns the center of the given element (SLOW - for debugging only!)