Dune Core Modules (2.8.0)

test-cornerstoragerefwrap.cc File Reference

Test std::reference_wrapper<SomeContainer> as the CornerStorage in MultiLinearGeometry. More...

#include <config.h>
#include <iostream>
#include <functional>
#include <limits>
#include <vector>
#include <dune/common/fvector.hh>
#include <dune/geometry/multilineargeometry.hh>
#include <dune/geometry/referenceelements.hh>

Functions

template<class ctype >
TestGeometry< ctype, 2, 2 > kiteGeometry ()
 make a geometry that covers a kite shape More...
 

Detailed Description

Test std::reference_wrapper<SomeContainer> as the CornerStorage in MultiLinearGeometry.

Function Documentation

◆ kiteGeometry()

template<class ctype >
TestGeometry< ctype, 2, 2 > kiteGeometry ( )

make a geometry that covers a kite shape

Returns
The returned geometry will reference a static array that hold the corner information. Because the order of destruction of static variables is a bit unclear, the returned value becomes invalid when main ends and shall not be used anymore.

References Dune::Geo::ReferenceElements< ctype_, dim >::cube().

Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 22, 23:30, 2024)