From adec0fb048d3470a997b84059a037abb861bb592 Mon Sep 17 00:00:00 2001 From: Wijtze Pieter Kikstra Date: Fri, 29 Nov 2024 11:48:48 +0100 Subject: [PATCH] Another cast --- .../custom_processes/apply_c_phi_reduction_process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/GeoMechanicsApplication/custom_processes/apply_c_phi_reduction_process.cpp b/applications/GeoMechanicsApplication/custom_processes/apply_c_phi_reduction_process.cpp index fbf1d66e0212..ae56415fde07 100644 --- a/applications/GeoMechanicsApplication/custom_processes/apply_c_phi_reduction_process.cpp +++ b/applications/GeoMechanicsApplication/custom_processes/apply_c_phi_reduction_process.cpp @@ -106,7 +106,7 @@ double ApplyCPhiReductionProcess::GetAndCheckC(const Element::PropertiesType& rP << "Missing required item INDEX_OF_UMAT_C_PARAMETER" << std::endl; KRATOS_ERROR_IF(part_properties[INDEX_OF_UMAT_C_PARAMETER] < 1 || - part_properties[INDEX_OF_UMAT_C_PARAMETER] > part_properties[UMAT_PARAMETERS].size()) + part_properties[INDEX_OF_UMAT_C_PARAMETER] > static_cast(part_properties[UMAT_PARAMETERS].size())) << "invalid INDEX_OF_UMAT_C_PARAMETER: " << part_properties[INDEX_OF_UMAT_C_PARAMETER] << " (out-of-bounds index)" << std::endl; const auto c = part_properties[UMAT_PARAMETERS][part_properties[INDEX_OF_UMAT_C_PARAMETER] - 1];