Skip constrained ase.atoms in forward#212
Conversation
|
I'm a bit confused/concerned here. Even if atoms are constrained, their per-atom energy will contribute to the forces on non-constrained atoms, so we can't really drop them from the calculation |
|
We don't remove them from the calculations. Fixed atoms are still neighbors and contribute. |
eb2eeb8 to
8fc520b
Compare
But they don't have their own V_i, that contributes to forces on their neighbors |
|
True, thanks for the catch @ceriottm! I think we both had a mental model with pair potentials, and did not consider higher body-order 😅 @PicoCentauri The problem is that the force on atom j We could ignore the fixed atoms/skip them in |
Fixes #206
Particles in an
ase.Atomsobject that are part of aFixAtomsconstraint are nowexcluded from
selected_atomsduring model inference. avoiding redundant per-atomoutput computation for atoms whose forces will be zeroed by the optimizer anyway.
Contributor (creator of pull-request) checklist
Reviewer checklist
📚 Download documentation for this pull-request