Commit 004944cb authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

always set m_eles through element_emplace_back

parent 21610b38
...@@ -61,7 +61,9 @@ ICoordSystem* ScatteringSimulation::createCoordSystem() const ...@@ -61,7 +61,9 @@ ICoordSystem* ScatteringSimulation::createCoordSystem() const
void ScatteringSimulation::initElementVector() void ScatteringSimulation::initElementVector()
{ {
m_eles = generateElements(beam()); for (auto& ele: generateElements(beam()))
element_emplace_back(std::move(ele));
if (m_cache.empty()) if (m_cache.empty())
m_cache.resize(m_eles.size(), 0.0); m_cache.resize(m_eles.size(), 0.0);
} }
Supports Markdown
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