Skip to content

Commit 08368ab

Browse files
authored
Support AB v0.5 (#37)
1 parent 936c586 commit 08368ab

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
2121
UnitfulAtomic = "a7773ee8-282e-5fa2-be4e-bd808c38a91a"
2222

2323
[compat]
24-
AtomsBase = "0.3, 0.4"
24+
AtomsBase = "0.5"
2525
AtomsCalculators = "0.2"
2626
Bumper = "0.6, 0.7"
2727
ChunkSplitters = "3"

src/ipi/ipi_interface.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ end
8686

8787
function send_pos_data(comm, sys)
8888
@info "Sending position data"
89-
box_tmp = vcat(bounding_box(sys)...)
89+
box_tmp = reduce(vcat, cell_vectors(sys))
9090
box = (Float64 ustrip).(u"bohr", box_tmp)
9191
write(comm, box)
9292
write(comm, zeros(3,3) ) #inverse cell that is to be dropped
@@ -170,7 +170,7 @@ function run_driver(address, calc, init_structure; port=31415, unixsocket=false,
170170
masses = mass(init_structure, :)
171171
atom_species = species(init_structure, :)
172172
positions = position(init_structure, :)
173-
box = bounding_box(init_structure)
173+
box = cell_vectors(init_structure)
174174

175175

176176
while true

test/test_ipi.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ box = (
2222

2323
pbc = (false, false, false)
2424

25-
hydrogen = FlexibleSystem(hydrogen[:], bounding_box=box, periodicity=pbc)
25+
hydrogen = FlexibleSystem(hydrogen[:], cell_vectors=box, periodicity=pbc)
2626

2727

2828
V = SimplePairPotential(

test/test_pairpotential.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ box = (
2424

2525
pbc = (false, false, false)
2626

27-
hydrogen = FlexibleSystem(hydrogen[:], bounding_box=box, periodicity=pbc)
27+
hydrogen = FlexibleSystem(hydrogen[:], cell_vectors=box, periodicity=pbc)
2828

2929

3030
V = SimplePairPotential(

0 commit comments

Comments
 (0)