Make sure correct name is used in tracer configuration

This commit is contained in:
Joakim Hove 2021-11-26 14:48:01 +01:00
parent 4e4f7fc94c
commit 508e2dac3c

View File

@ -681,7 +681,7 @@ namespace {
look up in the tracer configuration.
*/
const auto& tracer_input_name = tracer_rst_name.substr(0, tracer_rst_name.size() - 1);
const auto& tracer = tracer_config[tracer_rst_name];
const auto& tracer = tracer_config[tracer_input_name];
std::vector<std::string> ztracer;
ztracer.push_back(tracer_rst_name);
ztracer.push_back(fmt::format("{}/{}", tracer.unit_string, unit_system.name( UnitSystem::measure::volume )));