Skip to content

Commit

Permalink
Another cast
Browse files Browse the repository at this point in the history
  • Loading branch information
WPK4FEM committed Dec 4, 2024
1 parent ee785d2 commit adec0fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(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];
Expand Down

0 comments on commit adec0fb

Please sign in to comment.