From ab8c8935e925a4ee31135cae066f088ed609f007 Mon Sep 17 00:00:00 2001 From: Christoph Lehmann <christoph.lehmann@ufz.de> Date: Wed, 3 Aug 2022 08:41:24 +0200 Subject: [PATCH] [PL] Fixed format string errors --- ProcessLib/ComponentTransport/CreateLookupTable.cpp | 2 +- .../HeatTransportBHE/CreateHeatTransportBHEProcess.cpp | 5 +++-- .../LIE/HydroMechanics/CreateHydroMechanicsProcess.cpp | 5 +++-- .../LIE/SmallDeformation/CreateSmallDeformationProcess.cpp | 3 ++- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ProcessLib/ComponentTransport/CreateLookupTable.cpp b/ProcessLib/ComponentTransport/CreateLookupTable.cpp index 69729d94c69..8ffb09853af 100644 --- a/ProcessLib/ComponentTransport/CreateLookupTable.cpp +++ b/ProcessLib/ComponentTransport/CreateLookupTable.cpp @@ -40,7 +40,7 @@ std::vector<std::size_t> getIndexVector(std::vector<double> const& data, if (idx_vec.empty()) { - OGS_FATAL("No matching element {:d} is found in the vector.", value); + OGS_FATAL("No matching element {} is found in the vector.", value); } return idx_vec; diff --git a/ProcessLib/HeatTransportBHE/CreateHeatTransportBHEProcess.cpp b/ProcessLib/HeatTransportBHE/CreateHeatTransportBHEProcess.cpp index c942c0224fb..d9eec79de64 100644 --- a/ProcessLib/HeatTransportBHE/CreateHeatTransportBHEProcess.cpp +++ b/ProcessLib/HeatTransportBHE/CreateHeatTransportBHEProcess.cpp @@ -67,8 +67,9 @@ std::unique_ptr<Process> createHeatTransportBHEProcess( pv_name.find("temperature_BHE") == std::string::npos) { OGS_FATAL( - "Found a process variable name '{:s}'. It should be " - "'temperature_soil' or 'temperature_BHE_X'"); + "Found a process variable name '{}'. It should be " + "'temperature_soil' or 'temperature_BHE_X'", + pv_name); } auto variable = std::find_if(variables.cbegin(), variables.cend(), [&pv_name](ProcessVariable const& v) diff --git a/ProcessLib/LIE/HydroMechanics/CreateHydroMechanicsProcess.cpp b/ProcessLib/LIE/HydroMechanics/CreateHydroMechanicsProcess.cpp index a16494ee02a..1acb8891f9c 100644 --- a/ProcessLib/LIE/HydroMechanics/CreateHydroMechanicsProcess.cpp +++ b/ProcessLib/LIE/HydroMechanics/CreateHydroMechanicsProcess.cpp @@ -67,8 +67,9 @@ std::unique_ptr<Process> createHydroMechanicsProcess( pv_name.find("displacement_jump") != 0) { OGS_FATAL( - "Found a process variable name '{:s}'. It should be " - "'displacement' or 'displacement_jumpN' or 'pressure'"); + "Found a process variable name '{}'. It should be " + "'displacement' or 'displacement_jumpN' or 'pressure'", + pv_name); } auto variable = std::find_if(variables.cbegin(), variables.cend(), [&pv_name](ProcessVariable const& v) diff --git a/ProcessLib/LIE/SmallDeformation/CreateSmallDeformationProcess.cpp b/ProcessLib/LIE/SmallDeformation/CreateSmallDeformationProcess.cpp index 204739bc10c..2e2241fcd2c 100644 --- a/ProcessLib/LIE/SmallDeformation/CreateSmallDeformationProcess.cpp +++ b/ProcessLib/LIE/SmallDeformation/CreateSmallDeformationProcess.cpp @@ -60,7 +60,8 @@ std::unique_ptr<Process> createSmallDeformationProcess( OGS_FATAL( "Found a process variable name '{:s}'. It should be " "'displacement' or 'displacement_jumpN' or " - "'displacement_junctionN'"); + "'displacement_junctionN'", + pv_name); } if (pv_name.find("displacement_jump") == 0) { -- GitLab