Skip to content

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.

Call init(self, mol0%at, mol0%sym, mol0%xyz, mol0%chrg, mol0%uhf, &
& mol0%lattice, mol0%pbc)
self%ftype = mol0%ftype
end subroutine copyMolecule
Copy link
Member

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 =

Signed-off-by: Igor S. Gerasimov <[email protected]>
Signed-off-by: Igor S. Gerasimov <[email protected]>
Signed-off-by: Igor S. Gerasimov <[email protected]>
@thfroitzheim
Copy link
Member

@foxtran does this still fix a problem? If yes, I would merge it

@foxtran
Copy link
Contributor Author

foxtran commented Nov 7, 2025

I would prefer to implement check in LLVM flang firstly to find all problematic places.

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