What to implement for a global basis?
(Copied from the list)
When describing the global basis interface I was wondering what
exactly we require from implementers of a global basis. Currently
the bases in dune-functions do all only implement the Factory
only and use the Default(GlobalBasis|LocalView|LocalIndexSet)
classes. The DefaultGlobalBasis
itself provides access to the
factory. My question is, if we require this for all bases.
It seems that we have the following possibilities
-
(A) Anything that implements the
GlobalBasis,LocalView,LocalIndexSet
is OK. We don't require to have a factory. -
(B) Any global basis must also export a factory allowing to reuse the basis.
-
(C) One must implement the
Node
,NodeFactory
, andNodeIndexSet
only and theGlobal*
andLocal*
classes are always the default ones
In case we opt for (A) I'd simply drop the Default
prefixes.