[dune-functions] Questions about interpolate.hh

Oliver Sander oliver.sander at tu-dresden.de
Wed Mar 2 04:34:46 CET 2016


Hi,

> I don't see a reason why
> 
>   template <class B, class C, class F, class... TreeIndices>
>   void interpolate(const B& basis, const HybridTreePath<TreeIndices...>& treePath, C&& coeff, const F& f)
> 
> should not work, so go ahead.

done, will push as soon as the git server is back up.

> 
> BTW: I don't like the current variants of interpolate(...).
> The present solution does not follow any rules but just
> tries to avoid ambiguities like this.

I don't really see what's bad about them: there are four combinations I can think of:
with and without bit vector, with and without tree path.  Those four combinations exist
now, and all is fine.  Am I missing something?

Best,
Oliver

> 
> We should look for either (a) good method names or
> (b) an understandable ordering scheme for the arguments.
> (a) would be something like
> 
>   constraintInterpolate()
>   interpolateSubtree()
>   constraintInterpolateSubtree()
> 
> But I'm not happy with this and any suggestions are welcome.
> 
> Best,
> Carsten
> 
> 
> 
> _______________________________________________
> dune-functions mailing list
> dune-functions at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-functions
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-functions/attachments/20160302/4ada90b6/attachment.sig>


More information about the dune-functions mailing list