Skip to content

Conversation

@drroe
Copy link
Contributor

@drroe drroe commented Aug 10, 2022

Version 6.14.0.

The previous correction to imaging in the diffusion calculation (#984) was not enough, and could fail if the "unwrapped" position of the particle got too far away from the main unit cell (resulted in diffusion distances that were much too low). This PR fixes this by consolidating the unwrapping code originally in ImageRoutines.cpp to a separate file, and using that for both the unwrap and diffusion actions. The original unwrap routines are further sped up by only calculating the unwrap vector if the current position is farther than half a box length away from the previous position in any dimension (~2.3x speedup). In addition, the diffusion and unwrap actions have been OpenMP-parallelized for even more speedup (for unwrap ~2.7x speedup at 4 threads, for diffusion about 2.5x speedup at 4 threads).

@drroe drroe self-assigned this Aug 10, 2022
@drroe drroe merged commit fce4327 into Amber-MD:master Aug 10, 2022
@drroe drroe deleted the fix.diffusion.again branch August 10, 2022 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant