Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving general surface hopping functions to SurfaceHoppingMethods.jl #357

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Ash-Baldwin
Copy link
Contributor

Moved get_hopping_velocity() and get_hopping_nonadiabatic_couplings() out of fssh.jl and into SurfaceHoppingMethods.jl. I have also moved their duplicate definitions for RingPolymerSimulations into the same file to bring these definitions inline with the philosophy for duplicate definitions used elsewhere in the code.

changed the location of the definition of the get_hopping_eigenvalues() function to SurfaceHoppingMethods.jl so this general surface hopping function is defined in a more appropriate location
Previous commit copied over the wrong function from SurfaceHoppingMethods\rpsh.jl
…356)

Moved two generally applicable surface hopping functions get_hopping_nonadiabatic_coupling() and get_hopping_velocity() to SurfaceHoppingMethods.jl and moved their duplicate RingPolymer definitions to the same file to bring these definitions more in line with the duplicate function definition philosophy in the rest of NQCD
Copy link
Member

@Alexsp32 Alexsp32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get_centroid isn't imported in SurfaceHoppingMethods.jl as far as I can tell. Won't that break DynamicsUtils.get_hopping_velocity in the Ring Polymer case?

Added get_centroid() to SurfaceHoppingMethods.jl so that get_hopping_velocity() is able to work as expected.
@Ash-Baldwin
Copy link
Contributor Author

Ash-Baldwin commented Nov 5, 2024

I've imported get_centroid so the DynamicsUtils.get_hopping_velocity function should work as expected

Copy link
Member

@Alexsp32 Alexsp32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

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