Skip to content

Commit

Permalink
Fixed a bug with neck strengths
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Demidov committed Mar 13, 2024
1 parent 6d1d9a0 commit 9ea9339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/libgran/sinter_bridge/alt_breaking_sinter_bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ struct alt_breaking_sinter_functor {
field_value_t f_tot = f_n * n + f_t;
field_value_t tau_tot = -tau_t + tau_r + tau_o;

if (f_tot.norm() > bonded_contacts[i * n_part + j])
if (f_tot.norm() > neck_strengths[i * n_part + j])
bonded_contacts[i * n_part + j] = false;

return std::make_pair(f_tot / mass, tau_tot / inertia);
Expand Down

0 comments on commit 9ea9339

Please sign in to comment.