From 2113c4c06b67389f40eb54d4c57eb09769135896 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sun, 2 Aug 2020 22:11:50 -0400 Subject: [PATCH] Apply templated write_message to cross_sections.cpp --- src/cross_sections.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/cross_sections.cpp b/src/cross_sections.cpp index c06a11924a..b82a690e6d 100644 --- a/src/cross_sections.cpp +++ b/src/cross_sections.cpp @@ -228,7 +228,7 @@ read_ce_cross_sections(const std::vector>& nuc_temps, int idx = data::library_map[key]; std::string& filename = data::libraries[idx].path_; - write_message("Reading " + name + " from " + filename, 6); + write_message(6, "Reading {} from {}", name, filename); // Open file and make sure version matches hid_t file_id = file_open(filename, 'r'); @@ -256,10 +256,8 @@ read_ce_cross_sections(const std::vector>& nuc_temps, } // Show minimum/maximum temperature - write_message("Minimum neutron data temperature: " + - std::to_string(data::temperature_min) + " K", 4); - write_message("Maximum neutron data temperature: " + - std::to_string(data::temperature_max) + " K", 4); + write_message(4, "Minimum neutron data temperature: {} K", data::temperature_min); + write_message(4, "Maximum neutron data temperature: {} K", data::temperature_max); // If the user wants multipole, make sure we found a multipole library. if (settings::temperature_multipole) {