Commit 6edc5a68 authored by Enrico Bothmann's avatar Enrico Bothmann

Update m_hmass for user-provided Mass settings

(cherry picked from commit 9374ca17)
parent 05396e4a
......@@ -257,7 +257,9 @@ void Model_Base::ReadParticleData()
for (const auto& propertyname : pdata[ptclname].GetKeys()) {
auto s = pdata[ptclname][propertyname];
if (propertyname == "Mass") {
it->second->m_mass = s.SetDefault(it->second->m_mass).Get<double>();
const auto mass = s.SetDefault(it->second->m_mass).Get<double>();
it->second->m_mass = mass;
it->second->m_hmass = mass;
} else if (propertyname == "Width") {
it->second->m_width = s.SetDefault(it->second->m_width).Get<double>();
} else if (propertyname == "Active") {
......
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