Skip to content

Fix memory leak by deallocating S_X_SX comms data in fmmi() - #473

Merged
AugustinLu merged 1 commit into
developfrom
f-fix-s-x-sx
Aug 27, 2026
Merged

AugustinLu merged 1 commit into
developfrom
f-fix-s-x-sx

Conversation

@AugustinLu

Copy link
Copy Markdown
Contributor

This fix adds the missing call to deallocate S_X_SX's comms data in fmmi(). Without it, that comms structure is orphaned every step, and used memory grows linearly with simulation time in MD as well as geometry-optimisation runs.

The memory leak reported in #471 is confirmed suppressed on two different systems, and with different numbers of processes.

system_1_128core system_1_32core system_2_48core

Checks with SZP, DZP and TZTP also show similar original memory leak and its suppression by the present fix.
The fix is confirmed to have no impact on the simulation results.

@AugustinLu AugustinLu self-assigned this Aug 26, 2026
@AugustinLu AugustinLu added the area: main-source Relating to the src/ directory (main Conquest source code) label Aug 26, 2026
@AugustinLu
AugustinLu merged commit 1e6cbef into develop Aug 27, 2026
8 checks passed
@davidbowler
davidbowler deleted the f-fix-s-x-sx branch September 8, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: main-source Relating to the src/ directory (main Conquest source code)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants