diff options
Diffstat (limited to 'Source/Particles/Collision/BackgroundStopping/BackgroundStopping.cpp')
-rw-r--r-- | Source/Particles/Collision/BackgroundStopping/BackgroundStopping.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Particles/Collision/BackgroundStopping/BackgroundStopping.cpp b/Source/Particles/Collision/BackgroundStopping/BackgroundStopping.cpp index 939f098ee..dbfc1b1d4 100644 --- a/Source/Particles/Collision/BackgroundStopping/BackgroundStopping.cpp +++ b/Source/Particles/Collision/BackgroundStopping/BackgroundStopping.cpp @@ -59,8 +59,9 @@ BackgroundStopping::BackgroundStopping (std::string const collision_name) "For background stopping, the background temperature must be specified."); } - m_background_density_func = m_background_density_parser.compile<4>(); - m_background_temperature_func = m_background_temperature_parser.compile<4>(); + constexpr auto num_parser_args = 4; + m_background_density_func = m_background_density_parser.compile<num_parser_args>(); + m_background_temperature_func = m_background_temperature_parser.compile<num_parser_args>(); if (m_background_type == BackgroundStoppingType::ELECTRONS) { m_background_mass = PhysConst::m_e; |