Skip to content

Commit

Permalink
update interface to ChunkSplitters 3.0 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq authored Oct 3, 2024
1 parent 4d7fdc4 commit 91db838
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ UnitfulAtomic = "a7773ee8-282e-5fa2-be4e-bd808c38a91a"
AtomsBase = "0.3, 0.4"
AtomsCalculators = "0.2"
Bumper = "0.6, 0.7"
ChunkSplitters = "2"
ChunkSplitters = "3"
DiffResults = "1"
Folds = "0.2.10"
ForwardDiff = "0.10"
Expand Down
4 changes: 2 additions & 2 deletions src/sitepotentials/assembly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ function energy_forces_virial(
kwargs...)
uE = energy_unit(V)
fE = force_unit(V)
E_F_V = Folds.sum( collect(chunks(domain, ntasks)),
E_F_V = Folds.sum( collect(index_chunks(domain; n=ntasks)),
executor;
init=[ zero_energy(sys, V),
zero_forces(sys, V),
zero_virial(sys, V) ]
) do (sub_domain, _)
) do sub_domain

E = zero_energy(sys, V)
frc = zero_forces(sys, V)
Expand Down

0 comments on commit 91db838

Please sign in to comment.