From 699ef8d415de3c032dd55baf48ccf3f32ce8734a Mon Sep 17 00:00:00 2001 From: Dmitri Naumov Date: Thu, 3 Aug 2023 23:50:27 +0200 Subject: [PATCH] [PL/TM] Remove unnecessary .eval() calls --- ProcessLib/ThermoMechanics/ThermoMechanicsFEM-impl.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ProcessLib/ThermoMechanics/ThermoMechanicsFEM-impl.h b/ProcessLib/ThermoMechanics/ThermoMechanicsFEM-impl.h index 7521b60d07e..d188ac47300 100644 --- a/ProcessLib/ThermoMechanics/ThermoMechanicsFEM-impl.h +++ b/ProcessLib/ThermoMechanics/ThermoMechanicsFEM-impl.h @@ -204,8 +204,8 @@ void ThermoMechanicsLocalAssembler:: .value(variables, x_position, t, dt)); MathLib::KelvinVector::KelvinVectorType const - dthermal_strain = solid_linear_thermal_expansivity_vector.eval() * - (T_ip - T_prev_ip); + dthermal_strain = + solid_linear_thermal_expansivity_vector * (T_ip - T_prev_ip); // // displacement equation, displacement part @@ -275,8 +275,8 @@ void ThermoMechanicsLocalAssembler:: // The computation of KuT can be ignored. auto const alpha_T_tensor = MathLib::KelvinVector::kelvinVectorToSymmetricTensor( - solid_linear_thermal_expansivity_vector.eval()); - KuT.noalias() += B.transpose() * (C * alpha_T_tensor.eval()) * N * w; + solid_linear_thermal_expansivity_vector); + KuT.noalias() += B.transpose() * (C * alpha_T_tensor) * N * w; if (_ip_data[ip].solid_material.getConstitutiveModel() == MaterialLib::Solids::ConstitutiveModel::CreepBGRa) @@ -436,8 +436,7 @@ void ThermoMechanicsLocalAssembler:: .value(variables, x_position, t, dt)); MathLib::KelvinVector::KelvinVectorType const - dthermal_strain = - solid_linear_thermal_expansivity_vector.eval() * dT_ip; + dthermal_strain = solid_linear_thermal_expansivity_vector * dT_ip; eps_m.noalias() = eps_m_prev + eps - eps_prev - dthermal_strain;