Skip to content

Commit e168e04

Browse files
committed
Correct cutoff bonds
1 parent 31b04be commit e168e04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/models.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ end
215215
@inline function bond_potential(r2::T, model::GeneralKG) where T<:AbstractFloat
216216
u_fene = r2 model.r02 ? fene(r2, model.kr02, model.r02) : Inf
217217
u_lj = 0.0
218-
if r2 cutoff2(model)
218+
if r2 model.rcut2bond
219219
u_lj += lennard_jones(r2, model.ϵ4bond, model.σ2bond) - model.shiftbond
220220
end
221221
return u_fene + u_lj

0 commit comments

Comments
 (0)