Commit ee496a9a authored by Martin Nolte's avatar Martin Nolte Committed by Steffen Müthing

avoid deprecated EntityPointer in DGFGridFactory for UGGrid

In the DGFGridFactory for UGGrid, the entity pointers were still used in
two places. This patch replaces directly uses the entity instead.

(cherry picked from commit ec346220)
Signed-off-by: Steffen Müthing's avatarSteffen Müthing <muething@dune-project.org>
parent 54055720
......@@ -180,8 +180,7 @@ namespace Dune
const DGFBoundaryParameter::type &boundaryParameter ( const Dune::Intersection< GG, II > &intersection ) const
{
typedef Dune::Intersection< GG, II > Intersection;
typename Intersection::EntityPointer inside = intersection.inside();
const typename Intersection::Entity &entity = *inside;
const typename Intersection::Entity &entity = intersection.inside();
const int face = intersection.indexInInside();
const ReferenceElement< double, dimension > &refElem
......@@ -191,7 +190,7 @@ namespace Dune
for( int i = 0; i < corners; ++i )
{
const int k = refElem.subEntity( face, 1, i, dimension );
bound[ i ] = factory_.insertionIndex( *entity.template subEntity< dimension >( k ) );
bound[ i ] = factory_.insertionIndex( entity.template subEntity< dimension >( k ) );
}
DuneGridFormatParser::facemap_t::key_type key( bound, false );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment