Skip to content
Snippets Groups Projects
Commit 5aa798c7 authored by Martin Nolte's avatar Martin Nolte
Browse files

Merge branch 'bugfix/geometrygrid-various' into 'master'

Bugfix/geometrygrid various



See merge request !60
parents 52e91171 8b22b8c7
No related branches found
No related tags found
1 merge request!60Bugfix/geometrygrid various
......@@ -125,15 +125,20 @@ namespace Dune
FieldVector< ctype, dimensionworld >
integrationOuterNormal ( const FieldVector< ctype, dimension-1 > &local ) const
{
const LocalGeometry geoInInside = geometryInInside();
const int idxInInside = indexInInside();
const ReferenceElement< ctype, dimension > &refElement
= ReferenceElements< ctype, dimension>::general( insideGeo_.type() );
FieldVector< ctype, dimension > x( geometryInInside().global( local ) );
FieldVector< ctype, dimension > x( geoInInside.global( local ) );
const typename ElementGeometryImpl::JacobianInverseTransposed &jit = insideGeo_.jacobianInverseTransposed( x );
const FieldVector< ctype, dimension > &refNormal = refElement.integrationOuterNormal( indexInInside() );
const FieldVector< ctype, dimension > &refNormal = refElement.integrationOuterNormal( idxInInside );
FieldVector< ctype, dimensionworld > normal;
jit.mv( refNormal, normal );
if( !conforming() )
normal *= geoInInside.volume() / refElement.template geometry< 1 >( idxInInside ).volume();
normal *= jit.detInv();
//normal *= insideGeo_.integrationElement( x );
return normal;
......
......@@ -66,7 +66,7 @@ namespace Dune
void fill ( const Value &value = Value() ) { hostContainer_.fill( value ); }
void swap ( This &other ) { hostContainer_.swap( other ); }
void swap ( This &other ) { hostContainer_.swap( other.hostContainer_ ); }
ConstIterator begin () const { return hostContainer_.begin(); }
Iterator begin () { return hostContainer_.begin(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment