Skip to content
Snippets Groups Projects
Commit 17c2787e authored by Timo Koch's avatar Timo Koch
Browse files

[entity] Make entity a non-static interface function as in the dune grid interface

parent 150e5764
No related branches found
No related tags found
1 merge request!86[entity] Make entity a non-static interface function as in the dune grid interface
Pipeline #37404 passed
This commit is part of merge request !86. Comments created here will be created in the context of that merge request.
......@@ -308,12 +308,11 @@ public:
/** \brief Create an Entity from an EntitySeed */
template <class EntitySeed>
static typename Traits::template Codim<EntitySeed::codimension>::Entity
entity(const EntitySeed& seed)
typename Traits::template Codim<EntitySeed::codimension>::Entity
entity(const EntitySeed& seed) const
{
const int codim = EntitySeed::codimension;
typedef typename Traits::template Codim<codim>::Entity Entity;
return Entity(FoamGridEntity<codim, dimgrid, const FoamGrid>(seed.impl().target()));
return FoamGridEntity<codim, dimgrid, const FoamGrid>(seed.impl().target());
}
......
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