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
geometryThe Geometry object to test.
expectedAffineWhether the geometry should be affine.
resultCollect 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
geometryThe Geometry object to test.
expectedVolumeThe volume to expect from the geometry.
resultCollect pass/fail results.
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)