Skip to content

Optimized PERIODIC_IMAGE_CONV=1 - #170

Merged
ttadano merged 7 commits into
alamode-code:developfrom
r-masuki:develop
Feb 25, 2024
Merged

ttadano merged 7 commits into
alamode-code:developfrom
r-masuki:develop

Conversation

@r-masuki

Copy link
Copy Markdown
Collaborator

Optimized the memory usage in generating the constraints when PERIODIC_IMAGE_CONV=1.

I have changed the implementation of Constraint::get_constraint_translation_for_periodic_images to allocate memory only for the necessary periodic images, while the memory was allocated for all possible periodic images in the original implementation.
This change in the implementation lead to a speedup of the code, and the execution time of PERIODIC_IMAGE_CONV=1 is now comparable to that of PERIODIC_IMAGE_CONV=0.

@ttadano
ttadano merged commit d68e7b6 into alamode-code:develop Feb 25, 2024
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