-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: main
Are you sure you want to change the base?
Conversation
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
There was a problem hiding this 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.
I've imported |
There was a problem hiding this 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!
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.