Skip to content

Commit

Permalink
Merge pull request #13 from cesmix-mit/sw/fix_ace_nonorthog
Browse files Browse the repository at this point in the history
Sw/fix ace nonorthog
  • Loading branch information
swyant authored Aug 15, 2023
2 parents 11cb013 + db944b9 commit dd4fd57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ UnitfulAtomic = "a7773ee8-282e-5fa2-be4e-bd808c38a91a"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
AtomsBase = "0.2"
AtomsBase = "0.3"
Distances = "0.10"
InteratomicPotentials = "0.2.3"
NearestNeighbors = "0.4.9"
Expand Down
2 changes: 1 addition & 1 deletion src/BasisSystems/ACE/ace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function convert_system_to_atoms(system::AbstractSystem)
velocities = [ustrip.(v) for v in AtomsBase.velocity(system)]
masses = ustrip.(AtomsBase.atomic_mass(system))
atomic_number = AtomicNumber.(AtomsBase.atomic_number(system))
cell = JMat(ustrip.(vcat(AtomsBase.bounding_box(system)...)))
cell = JMat(ustrip.(transpose(hcat(AtomsBase.bounding_box(system)...))))
pbc = JVec([pbc == Periodic() ? true : false for pbc in AtomsBase.boundary_conditions(system)]...)
return Atoms(X = positions, P = velocities, M = masses, Z = atomic_number, cell = cell, pbc = pbc)
end
Expand Down

0 comments on commit dd4fd57

Please sign in to comment.