Skip to content

If constrains are set in the refinement step now the same constrains are set in the postprocess via the usage of xtb with orca as a driver.#145

Merged
jonathan-schoeps merged 8 commits intogrimme-lab:mainfrom
jonathan-schoeps:dev/orca_constrain
Jan 7, 2026
Merged

If constrains are set in the refinement step now the same constrains are set in the postprocess via the usage of xtb with orca as a driver.#145
jonathan-schoeps merged 8 commits intogrimme-lab:mainfrom
jonathan-schoeps:dev/orca_constrain

Conversation

@jonathan-schoeps
Copy link
Copy Markdown
Contributor

Changes

  • When constrained optimization is enabled during the refinement step, the post-processing stage now reuses the same constraints.
  • This is implemented by running xTB in the post-process with ORCA as the driver: ORCA provides the environment/properties, while xTB performs the geometry optimization, ensuring constraint consistency across both stages.
  • Additionally, a new test file has been added containing suitable tests for the new driver routines.

… xtb with orca as a driver to set the same constrains during postprocess.

Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>
…ns are enabled

Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>
Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>
Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>
Comment thread src/mindlessgen/qm/orca.py Outdated
Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>
Copy link
Copy Markdown
Member

@marcelmbn marcelmbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in general, thanks for the contribution!

Haven't had a look at the tests yet.

Have you tried if it's principally working as of now already?

Comment thread src/mindlessgen/qm/orca.py
Comment thread src/mindlessgen/qm/orca.py Outdated
Copy link
Copy Markdown
Member

@lmseidler lmseidler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good so far, only some minor things from my side

Comment thread src/mindlessgen/qm/orca.py Outdated
Comment thread src/mindlessgen/qm/orca.py Outdated
Comment thread test/test_qm/test_orca.py
@marcelmbn
Copy link
Copy Markdown
Member

Thanks for looking into this as well, @lmseidler!

@marcelmbn
Copy link
Copy Markdown
Member

And as always: Please add your changes to https://github.com/grimme-lab/MindlessGen/blob/main/CHANGELOG.md

…timize in orca.py

Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>
@jonathan-schoeps
Copy link
Copy Markdown
Contributor Author

Changelog is updated and the suggestions are implemented thank you for your reviews

@jonathan-schoeps
Copy link
Copy Markdown
Contributor Author

And the test are working

Copy link
Copy Markdown
Member

@marcelmbn marcelmbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lmseidler, can you check the tests?

Comment thread src/mindlessgen/qm/orca.py Outdated
Comment thread src/mindlessgen/qm/orca.py
Comment thread src/mindlessgen/qm/orca.py Outdated
Comment thread src/mindlessgen/qm/orca.py Outdated
Comment thread src/mindlessgen/qm/orca.py Outdated
Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>
@jonathan-schoeps
Copy link
Copy Markdown
Contributor Author

The requested changes are now implemented. I had to update every test due to the changes.

@marcelmbn
Copy link
Copy Markdown
Member

LGTM

marcelmbn
marcelmbn previously approved these changes Jan 2, 2026
Copy link
Copy Markdown
Member

@lmseidler lmseidler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably not super important but i would like the test code to be consistent as much as possible

Comment thread test/test_qm/test_orca.py
@marcelmbn
Copy link
Copy Markdown
Member

Thanks for checking the tests, @lmseidler! @jonathan-schoeps Can you fix them, and then we should be done?

Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>
Copy link
Copy Markdown
Member

@lmseidler lmseidler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@jonathan-schoeps jonathan-schoeps enabled auto-merge (squash) January 6, 2026 15:30
@jonathan-schoeps
Copy link
Copy Markdown
Contributor Author

@marcelmbn could you approve the PR once again? I can not merge right now.

@marcelmbn
Copy link
Copy Markdown
Member

Feel free to merge!

@jonathan-schoeps jonathan-schoeps merged commit 465e6ac into grimme-lab:main Jan 7, 2026
13 checks passed
marcelmbn added a commit that referenced this pull request Jan 22, 2026
* Remove need for constraints and specific compositions (#143)

* initial implementation of constraint input

Signed-off-by: Marcel Mueller <marcel.mueller@thch.uni-bonn.de>

* improve code

Signed-off-by: Marcel Mueller <marcel.mueller@thch.uni-bonn.de>

* added CHANGELOG and formatted it

Signed-off-by: Marcel Mueller <marcel.mueller@thch.uni-bonn.de>

* remove need for fixed composition and exact number of atoms

Signed-off-by: Marcel Mueller <marcel.mueller@thch.uni-bonn.de>

---------

Signed-off-by: Marcel Mueller <marcel.mueller@thch.uni-bonn.de>

* If constrains are set in the refinement step now the same constrains are set in the postprocess via the usage of xtb with orca as a driver. (#145)

* If constrains are set during refinement the postprocess step now uses xtb with orca as a driver to set the same constrains during postprocess.

Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>

* Implemented tests for the orca as a driver run when distance constrains are enabled

Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>

* Fix for the windows python crash in testsuit

Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>

* Try to fix for the windows python crash in testsuit

Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>

* Removal of copied code

Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>

* Implementation of comments from the Pull request, less complicated optimize in orca.py

Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>

* Implemented requested changes and updated tests

Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>

* changed the test_orca.py testsuite to match the test_xtb.py tests

Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>

---------

Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>

---------

Signed-off-by: Marcel Mueller <marcel.mueller@thch.uni-bonn.de>
Signed-off-by: Jonathan Schöps <s6jtscho@uni-bonn.de>
Co-authored-by: Jonathan Schöps <106986430+jonathan-schoeps@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants