Skip to content
Snippets Groups Projects
Commit 251e79d7 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Forgotten fix for ParameterPool leakage in Simulation.

parent 0e20d240
No related branches found
No related tags found
No related merge requests found
...@@ -158,7 +158,7 @@ void Simulation::runSimulation() ...@@ -158,7 +158,7 @@ void Simulation::runSimulation()
total_polarized_intensity.copyShapeFrom(m_polarization_output); total_polarized_intensity.copyShapeFrom(m_polarization_output);
total_intensity.setAllTo(0.); total_intensity.setAllTo(0.);
total_polarized_intensity.setAllTo(Eigen::Matrix2d::Zero()); total_polarized_intensity.setAllTo(Eigen::Matrix2d::Zero());
ParameterPool *p_param_pool = createParameterTree(); boost::scoped_ptr<ParameterPool > p_param_pool(createParameterTree());
for (size_t index=0; index < param_combinations; ++index) { for (size_t index=0; index < param_combinations; ++index) {
double weight = m_distribution_handler.setParameterValues( double weight = m_distribution_handler.setParameterValues(
p_param_pool, index); p_param_pool, index);
......
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