From 9bf13b00a948d411b32840e00bf63b561ff3f866 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Fri, 3 Nov 2023 10:19:01 -0400 Subject: [PATCH] Update src/LAMMPS.jl --- src/LAMMPS.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LAMMPS.jl b/src/LAMMPS.jl index 69c99af..b1cf9c4 100644 --- a/src/LAMMPS.jl +++ b/src/LAMMPS.jl @@ -83,7 +83,7 @@ Base.unsafe_convert(::Type{Ptr{Cvoid}}, lmp::LMP) = lmp.handle Shutdown an LMP instance. """ function close!(lmp::LMP) - handle = @atomicswap this.handle => C_NULL + handle = @atomicswap this.handle = C_NULL if handle !== C_NULL API.lammps_close(handle) end