Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Oct 8, 2024
1 parent 5ed5184 commit 7ff082c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/interatomic_distance_fg.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using CellListMap: ParticleSystem, map_pairwise, map_pairwise!
using SPGBox: spgbox!

# Structure used to evaluate the function and gradient of the distance between atoms
# in a single pass, using CellListMap.
mutable struct InteratomicDistanceFG{D,T}
f::T
dmin::T
Expand Down Expand Up @@ -73,10 +75,11 @@ function fg!(g, system, packmol_system)
# Use the chain rule to compute the gradient relative to the rotations
# and translations of the molecules
chain_rule!(packmol_system, fg)

return system.fg.f
end

function f(

function pack_monoatomic_callback(spgresult, system, tol, iprint)
if spgresult.nit % iprint == 0
println(
Expand Down

0 comments on commit 7ff082c

Please sign in to comment.