Skip to content

Commit 61ce75d

Browse files
committedMar 11, 2025·
index fix
1 parent 37d41d2 commit 61ce75d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎src/Models/Material/Material_Models/Correspondence/Correspondence.jl

+2-3
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ function calculate_bond_force(
309309
bond_force::Vector{Vector{Vector{Float64}}},
310310
)
311311
if dof == 2
312-
313312
calculate_bond_force_2d!(
314313
bond_force,
315314
nodes,
@@ -360,7 +359,7 @@ function calculate_bond_force_2d!(
360359
b_fi = zero(eltype(temp))
361360
@inbounds @fastmath for jdof = 1:2
362361
b_fi +=
363-
temp[jdof, idof] *
362+
temp[idof, jdof] *
364363
bond_damage[iID][jID] *
365364
undeformed_bond[iID][jID][jdof]
366365
end
@@ -399,7 +398,7 @@ function calculate_bond_force_3d!(
399398
b_fi = zero(eltype(temp))
400399
@inbounds @fastmath for jdof = 1:3
401400
@views b_fi +=
402-
temp[jdof, idof] *
401+
temp[idof, jdof] *
403402
bond_damage[iID][jID] *
404403
undeformed_bond[iID][jID][jdof]
405404
end

0 commit comments

Comments
 (0)