ASE has an atom property called constraints omitting atom updates during optimisations and dynamics. Currently, we compute all forces even if these constraints are present. It is not problematic as the optimizer will do a correct behaviour, but we do unnecessary calculations. I think we should consider constraints when doing inference. Since we already have the selected_atoms, this should not be too difficult.
Pinging also @prajwal-pisal as he requested this.
ASE has an atom property called constraints omitting atom updates during optimisations and dynamics. Currently, we compute all forces even if these constraints are present. It is not problematic as the optimizer will do a correct behaviour, but we do unnecessary calculations. I think we should consider
constraintswhen doing inference. Since we already have theselected_atoms, this should not be too difficult.Pinging also @prajwal-pisal as he requested this.