Skip to content

Rosa Bulo (REB) SCMSUITE-- SO107: Fixed bug writing Molecule section …#357

Merged
rebadam merged 1 commit intotrunkfrom
RosaBulo/rkf_writeheader_bug
Feb 10, 2026
Merged

Rosa Bulo (REB) SCMSUITE-- SO107: Fixed bug writing Molecule section …#357
rebadam merged 1 commit intotrunkfrom
RosaBulo/rkf_writeheader_bug

Conversation

@rebadam
Copy link
Contributor

@rebadam rebadam commented Feb 10, 2026

…RKFTrajectoryFile

  • Once the header (Molecule sections etc) is written, it will not be written again when position==0
    This fixes a bug, but the bug only had impact when the class was used in a very expert way. Usually the header is written only at the first write call, when position==0.

However, in the conformers tool I tried to be clever, so I first wrote the header and passed it all the molecule information. Then I wrote each trajectory entry, but passed only the coordinate and lattice information. I did this to be faster. Unfortunately, the Molecule section was overwritten with the later incomplete molecule information, resulting in an incorrect charge.

…RKFTrajectoryFile

- Once the header (Molecule sections etc) is written, it will not be written again when position==0
@rebadam rebadam requested a review from dormrod February 10, 2026 11:10
@rebadam rebadam merged commit 8ac2660 into trunk Feb 10, 2026
21 checks passed
@rebadam rebadam deleted the RosaBulo/rkf_writeheader_bug branch February 10, 2026 22:06
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

Comments