DUNE-FEM (unstable)

unimplementedgeometry.hh
1#ifndef DUNE_FEM_GRIDPART_COMMON_UNIMPLEMENTEDGEOMETRY_HH
2#define DUNE_FEM_GRIDPART_COMMON_UNIMPLEMENTEDGEOMETRY_HH
3
4#include <string>
5#include <utility>
6
10
12
13namespace Dune
14{
15
16 // UnimplementedGeometry
17 // ---------------------
18
19 template< class ct, int mydim, int cdim >
20 struct UnimplementedGeometry
21 {
22 static const int mydimension = mydim;
23 static const int coorddimension = cdim;
24
25 typedef ct ctype;
26 typedef FieldVector< ctype, mydimension > LocalCoordinate;
27 typedef FieldVector< ctype, coorddimension > GlobalCoordinate;
28
30 typedef FieldMatrix< ctype, coorddimension, mydimension > JacobianInverseTransposed;
31
32 UnimplementedGeometry ( std::string message = "Geometry not implemented" )
33 : message_( std::move( message ) )
34 {}
35
36 GeometryType type () const { DUNE_THROW( NotImplemented, message_ ); }
37 bool affine () const { return false; }
38
39 int corners () const { DUNE_THROW( NotImplemented, message_ ); }
40 GlobalCoordinate corner ( int i ) const { DUNE_THROW( NotImplemented, message_ ); }
41 GlobalCoordinate center () const { DUNE_THROW( NotImplemented, message_ ); }
42
43 GlobalCoordinate global ( const LocalCoordinate &local ) const { DUNE_THROW( NotImplemented, message_ ); }
44 LocalCoordinate local ( const GlobalCoordinate &global ) const { DUNE_THROW( NotImplemented, message_ ); }
45
46 ctype integrationElement ( const LocalCoordinate &local ) const { DUNE_THROW( NotImplemented, message_ ); }
47 ctype volume () const { DUNE_THROW( NotImplemented, message_ ); }
48
49 JacobianTransposed jacobianTransposed ( const LocalCoordinate &local ) const { DUNE_THROW( NotImplemented, message_ ); }
50 JacobianInverseTransposed jacobianInverseTransposed ( const LocalCoordinate &local ) const { DUNE_THROW( NotImplemented, message_ ); }
51
52 private:
53 std::string message_;
54 };
55
56} // namespace Dune
57
58#endif // #ifndef DUNE_FEM_GRIDPART_COMMON_UNIMPLEMENTEDGEOMETRY_HH
A few common exception classes.
Wrapper and interface classes for element geometries.
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:132
Implements a matrix constructed from a given type representing a field and compile-time given number ...
Implements a vector constructed from a given type representing a field and a compile-time given size.
#define DUNE_THROW(E, m)
Definition: exceptions.hh:218
Dune namespace.
Definition: alignedallocator.hh:13
STL namespace.
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 21, 23:30, 2024)