This commit is contained in:
2023-10-19 13:17:58 +02:00
parent 1741b107f7
commit 8412e2f643
3 changed files with 9 additions and 5 deletions

View File

@@ -18,6 +18,7 @@
#include "Particle.hpp"
#include "constants.hpp"
#include "typedefs.hpp"
#include "utils.hpp"
#pragma omp declare reduction(+ : vec_3d : omp_out += omp_in) \
initializer(omp_priv = omp_orig)
@@ -62,7 +63,7 @@ private:
*
* @param i Index i for \f$k_{r,i,j}\f$
* @param j Index j for \f$k_{r,i,j}\f$
* @param dt the step length (delta time)
* @param dt The step length (delta time)
*
* @return vec_3d
* */
@@ -192,6 +193,8 @@ public:
* @param steps The amount of steps for the whole simulation
* @param method The method to use when moving forward a timestep
* @param particle_interaction Turn particle interactions on/off
*
* @return simulation_t
* */
simulation_t simulate(double time, unsigned int steps,
std::string method = "rk4",