issue with entity method on VirtualizedLF
Calling localfunction(entity).entity() causes a seg fault. Can be tested by changing the interpolation in dune-vem: --- a/dune/vem/space/interpolate.hh +++ b/dune/vem/space/interpolate.hh @@ -43,6 +43,7 @@ namespace Dune for( const ElementSeedType &entitySeed : entitySeeds[ agglomerate ] ) { const auto &element = v.gridPart().entity( entitySeed ); interpolation( element, u.localFunction( element ), ldv );
-
// interpolation( u.localFunction( element ), ldv ); } v.setLocalDofs( v.gridPart().entity( entitySeeds[ agglomerate ].front() ), ldv );
diff --git a/dune/vem/space/interpolation.hh b/dune/vem/space/interpolation.hh index 8367d22..3adc4b1 100644 --- a/dune/vem/space/interpolation.hh +++ b/dune/vem/space/interpolation.hh @@ -38,9 +38,11 @@ namespace Dune {}
template< class LocalFunction, class LocalDofVector >
-
void operator() ( const LocalFunction &localFunction, LocalDofVector &localDofVector ) const
-
void operator() ( const ElementType &element, const LocalFunction &localFunction, LocalDofVector &localD {
-
const ElementType &element = localFunction.entity();
-
// void operator() ( const LocalFunction &localFunction, LocalDofVector &localDofVector ) const
-
// {
-
// const ElementType &element = localFunction.entity();