Skip to content
Snippets Groups Projects
Commit 93248a00 authored by Oliver Sander's avatar Oliver Sander
Browse files

Minor cleanup: get rid of the 'codimension' variable

[[Imported from SVN: r118]]
parent 3f632d28
No related branches found
No related tags found
No related merge requests found
......@@ -272,10 +272,7 @@ namespace Dune
typedef FieldVector< ctype, coorddimension > GlobalCoordinate;
private:
dune_static_assert( (0 <= mydimension) && (mydimension <= dimGrid),
"Invalid geometry dimension." );
static const int codimension = dimGrid - mydimension;
dune_static_assert( (0 <= mydimension), "Geometry dimension must be nonnegative." );
template< bool >
struct Hybrid
......@@ -292,7 +289,7 @@ namespace Dune
typedef typename SelectType< Traits::hybrid, Hybrid< true >, NonHybrid< false > >::Type::Mapping
ElementMapping;
typedef GenericGeometry::MappingProvider< ElementMapping, codimension > MappingProvider;
typedef GenericGeometry::MappingProvider< ElementMapping, dimGrid - mydimension > MappingProvider;
protected:
typedef typename MappingProvider::Mapping Mapping;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment