Dune Core Modules (2.3.1)
testbasicgeometry.cc File Reference
A unit test for the BasicGeometry class. More...
#include <cstddef>
#include <cstdlib>
#include <ostream>
#include <iostream>
#include <dune/common/exceptions.hh>
#include <dune/common/ios_state.hh>
#include <dune/common/parallel/mpihelper.hh>
#include <dune/geometry/type.hh>
#include <dune/geometry/genericgeometry/geometry.hh>
#include <dune/geometry/test/checkgeometry.hh>
Functions | |
template<class TestGeometry > | |
void | testBasicGeometryAffine (const TestGeometry &geometry, bool expectedAffine, int &result) |
Test whether the given BasicGeometry object 'affine' attribute is set correctly. More... | |
template<class TestGeometry > | |
bool | testBasicGeometryVolume (const TestGeometry &geometry, typename TestGeometry::ctype expectedVolume, int &result, bool warnOnly=false) |
Test the volume of the given BasicGeometry object. More... | |
Detailed Description
A unit test for the BasicGeometry class.
Function Documentation
◆ testBasicGeometryAffine()
template<class TestGeometry >
void testBasicGeometryAffine | ( | const TestGeometry & | geometry, |
bool | expectedAffine, | ||
int & | result | ||
) |
Test whether the given BasicGeometry object 'affine' attribute is set correctly.
- Parameters
-
geometry The Geometry object to test. expectedAffine Whether the geometry should be affine. result Collect pass/fail results.
◆ testBasicGeometryVolume()
template<class TestGeometry >
bool testBasicGeometryVolume | ( | const TestGeometry & | geometry, |
typename TestGeometry::ctype | expectedVolume, | ||
int & | result, | ||
bool | warnOnly = false |
||
) |
Test the volume of the given BasicGeometry object.
- Parameters
-
geometry The Geometry object to test. expectedVolume The volume to expect from the geometry. result Collect pass/fail results.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)