Skip to content

Commit 62c53b7

Browse files
committed
Trivia
1 parent 3f9d924 commit 62c53b7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/models.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ end
131131
###############################################################################
132132

133133
struct SmoothLennardJones{T<:AbstractFloat} <: DiscreteModel
134+
name::String
134135
ϵ::T
135136
σ::T
136137
ϵ4::T
@@ -150,7 +151,7 @@ function SmoothLennardJones(ϵ::T, σ::T; rcut::T=2.5*σ, name = "SmoothLennardJ
150151
C2_σ2 = C2 / σ2
151152
C4_σ4 = C4 / σ2 ^ 2
152153
rcut2= rcut^2
153-
return SmoothLennardJones(ϵ, σ, 4ϵ, σ2, C0, C2_σ2, C4_σ4, rcut, rcut2)
154+
return SmoothLennardJones(name, ϵ, σ, 4ϵ, σ2, C0, C2_σ2, C4_σ4, rcut, rcut2)
154155
end
155156

156157
function potential(r2::T, model::SmoothLennardJones) where T <: AbstractFloat

0 commit comments

Comments
 (0)