Skip to content

Fix copying of TMolecule #1292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Fix copying of TMolecule #1292

wants to merge 3 commits into from

Conversation

foxtran
Copy link
Contributor

@foxtran foxtran commented May 21, 2025

By some reason, GCC 12.2 does not copy some data between TMolecule objects and, therefore, there is some trash in output like (it is xtbopt.xyz):
image

This patch fixes it. Not sure that I found all places, but at least GFN2 geometry optimizations work well.

foxtran added 3 commits May 21, 2025 20:43
Signed-off-by: Igor S. Gerasimov <[email protected]>
Signed-off-by: Igor S. Gerasimov <[email protected]>
Signed-off-by: Igor S. Gerasimov <[email protected]>
& mol0%lattice, mol0%pbc)
self%ftype = mol0%ftype
end subroutine copyMolecule
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should merge the TMolecule copy part here with the = assignment and add a deep copy of everything. Then one could still just use the assignment with =

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.

2 participants