Skip to content

Commit

Permalink
Update src/LAMMPS.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy authored Nov 3, 2023
1 parent 4cb8fa6 commit d3f2e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LAMMPS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Base.unsafe_convert(::Type{Ptr{Cvoid}}, lmp::LMP) = lmp.handle
Shutdown an LMP instance.
"""
function close!(lmp::LMP)
handle = @atomicswp this.handle => C_NULL
handle = @atomicswap this.handle => C_NULL
if handle !== C_NULL
API.lammps_close(handle)
end
Expand Down

0 comments on commit d3f2e67

Please sign in to comment.