Fix entity set handling
When fixing the way EntitySet
s are handled in GridFunctionSpace
s, Andreas took away the possibility to pass an EntitySet
to the constructor of the space. That is problematic for two reasons:
- The
EntitySet
is the actual entity being used here, and it's an ideal place to cache all kinds of information not provided by the underlyingGridView
, so I want this thing to be available. - Speaking of efficiency, for non-overlapping computations the
IndexSet
contained in theEntitySet
is a non-trivial object and we don't want to create a gazillion copies of it.
So this merge requests reverts the solution from !192 (merged) (but keeps the tests) and goes for a much simpler solution: By default, an EntitySet
will now initialize upon construction and will contain index information for all codimensions. This is basically free in the default case of a AllPartition
, and if you are running non-overlapping, you will have to take care of correctly initializing the EntitySet
anyway.
This fixes #62 (closed), #70 (closed) and #78 (closed).