Skip to content

Generalize tuple space to accept mixed grid part

Marco Agnese requested to merge feature/generalize_tuple_space into master

With this change it is possible to define a TupleDiscreteFunctionSpace with spaces defined over different grid parts. The only restriction is that they need to have the same EntityType.

The change is backward compatible (the old constructor has a unused warning but this is a false positive).

Now each sub-space is created directly from the associated grid part while the common the firstGridPart is passed to construct the TupleMapper and the DiscreteSpaceDefault. Therefore, iterating over the TupleDiscreteSpace has the same effect of iterating over the first GridPart.

Merge request reports