Skip to content

Commit

Permalink
[PL/TH2M] Adjust debug and warning messages
Browse files Browse the repository at this point in the history
Same as in other processes.
  • Loading branch information
endJunction committed Jan 16, 2024
1 parent 85190c5 commit 2eb4317
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ProcessLib/TH2M/TH2MFEM-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
}
Expand Down

0 comments on commit 2eb4317

Please sign in to comment.