From 2eb4317ae037d8d5b680b455f1b89de91bfd82b9 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov Date: Wed, 10 Jan 2024 17:05:01 +0100 Subject: [PATCH] [PL/TH2M] Adjust debug and warning messages Same as in other processes. --- ProcessLib/TH2M/TH2MFEM-impl.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ProcessLib/TH2M/TH2MFEM-impl.h b/ProcessLib/TH2M/TH2MFEM-impl.h index a500cba30a3..f0f2fd2c691 100644 --- a/ProcessLib/TH2M/TH2MFEM-impl.h +++ b/ProcessLib/TH2M/TH2MFEM-impl.h @@ -898,7 +898,6 @@ std::size_t TH2MLocalAssembler< if (name.starts_with("material_state_variable_") && name.ends_with("_ip")) { std::string const variable_name = name.substr(24, name.size() - 24 - 3); - DBUG("Setting material state variable '{:s}'", variable_name); // Using first ip data for solid material. TODO (naumov) move solid // material into element, store only material state in IPs. @@ -910,10 +909,16 @@ std::size_t TH2MLocalAssembler< { return iv.name == variable_name; }); iv != end(internal_variables)) { + DBUG("Setting material state variable '{:s}'", variable_name); return ProcessLib::setIntegrationPointDataMaterialStateVariables( values, _ip_data, &IpData::material_state_variables, iv->reference); } + + WARN( + "Could not find variable {:s} in solid material model's " + "internal variables.", + variable_name); } return 0; }