ug4
ug::grid_unit_tests Namespace Reference

Functions

void CheckAssociatedEdgesOfVolumes (Grid &g)
 
void CheckAssociatedVolumesOfEdges (Grid &g)
 

Function Documentation

◆ CheckAssociatedEdgesOfVolumes()

void ug::grid_unit_tests::CheckAssociatedEdgesOfVolumes ( Grid g)

◆ CheckAssociatedVolumesOfEdges()

void ug::grid_unit_tests::CheckAssociatedVolumesOfEdges ( Grid g)

THIS METHOD USES Grid::mark! iterates over all edges in g and checks for each whether the volumes stored in the associated container are the same as the edges which can be found in the grid and which are contained by the volume...

If something is wrong, the method throws an instance of UGError.

References ug::Grid::begin_marking(), ug::Grid::clear_marks(), ug::CollectAssociated(), ug::EDGEOPT_STORE_ASSOCIATED_VOLUMES, ug::Grid::edges_begin(), ug::Grid::edges_end(), ug::Grid::enable_options(), ug::Grid::end_marking(), ug::Grid::is_marked(), ug::Grid::mark(), ug::EdgeVertices::num_vertices(), ug::Grid::option_is_enabled(), UG_LOG, UG_THROW, ug::EdgeVertices::vertices(), and ug::VolumeContains().