IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 220ee1a9 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

made approximator a template parameter

parent 04164a42
No related branches found
No related tags found
1 merge request!67Resolve "Add support for inhomogeneus density"
...@@ -18,10 +18,11 @@ ...@@ -18,10 +18,11 @@
namespace corsika::environment { namespace corsika::environment {
template <class TDerivableRho> template <class TDerivableRho,
// TODO make LinearApproximator a template parameter to facilitate exchangability template <typename> class TApproximator = LinearApproximator>
class DensityFunction : public LinearApproximator<DensityFunction<TDerivableRho>> { class DensityFunction
friend class LinearApproximator<DensityFunction<TDerivableRho>>; : public TApproximator<DensityFunction<TDerivableRho, TApproximator>> {
friend class TApproximator<DensityFunction<TDerivableRho, TApproximator>>;
TDerivableRho fRho; //!< functor for density TDerivableRho fRho; //!< functor for density
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment