Change lambda to method

This commit is contained in:
2023-10-13 20:32:32 +02:00
parent 69491d1c02
commit c4aa6f2179
2 changed files with 41 additions and 30 deletions

View File

@@ -36,8 +36,9 @@ private:
std::vector<Particle> particles; ///< The particles in the Penning trap
sim_arr k_v;
sim_arr k_r;
std::function<vec_3d(int, double)>* v_funcs;
std::function<vec_3d(int, double)>* r_funcs;
vec_3d v_func(int, int, double);
vec_3d r_func(int, int, double);
public:
/** @brief Set B_0, V_0 and d.