Skip to content

Commit aa2b13f

Browse files
committed
some stuff to get it to run on rocm
1 parent 7c5597e commit aa2b13f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/spatial.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,8 @@ function scale_coords!(sys, scale_factor; ignore_molecules=false)
867867
coords_nounits[i] = wrap_coords(
868868
coords_nounits[i] .+ shift_vecs[mi] .- center_shifts[mi], boundary_nounits)
869869
end
870-
sys.coords = coords_nounits * coord_units
870+
ArrayType = get_array_type(sys.coords)
871+
sys.coords = ArrayType(coords_nounits * coord_units)
871872
end
872873
return sys
873874
end

0 commit comments

Comments
 (0)