Fix bugs with constrained GeomOpt & FixSymmetry#552
Open
PascalSalzbrenner wants to merge 7 commits intoTorchSim:mainfrom
Open
Fix bugs with constrained GeomOpt & FixSymmetry#552PascalSalzbrenner wants to merge 7 commits intoTorchSim:mainfrom
PascalSalzbrenner wants to merge 7 commits intoTorchSim:mainfrom
Conversation
…onsistencies with atom positions when cell is adjusted, eg due to symmetry)
…xation with FixSymmetry
Co-authored-by: Copilot <copilot@github.com>
Member
|
Thanks for the PR! I was out on holiday last week but will take a look in the next few days |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bugs
I fixed three connected bugs causing high failure rates for constrained high-throughput geometry optimisations.
cell_positionswere not updated after the cell was adjusted by constraints, which meant the next iteration started with stale positions. Now they are resynced after the adjustment.prev_positions/forceswere stored in the un-adjusted coordinate frame. Now they are stored after the adjustment, consistently with the new positions.FixSymmetry'smax_cumulative_strainclamp prevented full geometry optimisation. Speculatively, this was added to prevent strain blow-ups which the other bug fixes seem to have fixed. Removedmax_cumulative_strainclamp &reference_cellswhich were used in the strain clamping. In my testing with heavily distorted structures, they all converge now.Testing
FixSymmetryFixSymmetrytests to remove references tomax_cumulative_strainclamp &reference_cellsChecklist
Before a pull request can be merged, the following items must be checked: