[functions] rewrite of FunctionProvider to reduce code duplication
There is finally only one FunctionProvider, all specializations are gone. The price for this is one additional line in all functions that should be provided which is acceptable. See the added documentation of FunctionProvider on how to proceed for new functions. The only drawback is that there are still four places in functions.hh that need to be touched. This is left as an exercise for someone who fancies static loops over tuple types (not a tuple object), I am too tired now... :)
Showing
- dune/stuff/functions.hh 156 additions, 119 deletionsdune/stuff/functions.hh
- dune/stuff/functions/ESV2007.hh 16 additions, 6 deletionsdune/stuff/functions/ESV2007.hh
- dune/stuff/functions/checkerboard.hh 2 additions, 0 deletionsdune/stuff/functions/checkerboard.hh
- dune/stuff/functions/constant.hh 2 additions, 0 deletionsdune/stuff/functions/constant.hh
- dune/stuff/functions/expression.hh 2 additions, 0 deletionsdune/stuff/functions/expression.hh
- dune/stuff/functions/flattop.hh 7 additions, 2 deletionsdune/stuff/functions/flattop.hh
- dune/stuff/functions/interfaces.hh 2 additions, 0 deletionsdune/stuff/functions/interfaces.hh
- dune/stuff/functions/spe10.hh 8 additions, 3 deletionsdune/stuff/functions/spe10.hh
Loading
Please register or sign in to comment