[Dune] passing functions as arguments

Aleksejs Fomins aleksejs.fomins at lspr.ch
Fri Aug 8 17:13:18 CEST 2014


Dear Dune,

I have decided to implement an approximate integration method
alternative to the Quadrature Rule. For that, the integrator procedure
needs to sample from some function decided at runtime.

How would you approach such a construction?

As in, should I pass function/object as parameter? Also, I was told that
I should avoid using virtual functions when doing this.

Regards,
Aleksejs

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140808/127bf5e6/attachment.sig>


More information about the Dune mailing list