Commit 76cd2254 authored by Philipp Schäfer's avatar Philipp Schäfer
Browse files

ODESolver

- fixed a memory leak
parent a7fa757a
#include <ITAPropagationPathSim/AtmosphericRayTracing/ODESolver/ODESolver.h>
#include <cmath>
#include <vector>
using namespace ITAPropagationPathSim::AtmosphericRayTracing;
......@@ -96,8 +97,8 @@ void ODESolver::RungeKutta(const VistaVector3D& r, const VistaVector3D& s, const
const double sz = s[Vista::Z];
sNew = s;
auto dr = new VistaVector3D[4];
auto dsz = new double[4];
auto dr = std::vector<VistaVector3D>(4);
auto dsz = std::vector<double>(4);
ODEDerivatives(r[Vista::Z], s, atmosphere, dr[0], dsz[0]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment