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

Implemented density transfer, added timings to hessian #878

Merged
merged 7 commits into from
Sep 16, 2023

Conversation

a-azzali
Copy link
Contributor

Added transfer_density
Added a non-k-point-specific transfer_mapping
Added timings to hessian functions

Copy link
Member

@antoine-levitt antoine-levitt left a comment

Choose a reason for hiding this comment

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

Hi and thanks for this, looks useful! Generally the code looks a bit complicated because of all the cartesian indices. Would it not be simpler to vectorize the arrays (ie rho_vec = reshape(rho, prod(fft_size), 2) and have transfer_mapping work with just integers?

src/transfer.jl Outdated Show resolved Hide resolved
src/transfer.jl Outdated Show resolved Hide resolved
src/transfer.jl Outdated Show resolved Hide resolved
@a-azzali
Copy link
Contributor Author

a-azzali commented Sep 1, 2023

Thank you for suggesting those 3 changes to transfer_density, I hope it's ok now.

About the array vectorization: We're using the CartesianIndices because one has 8 parallelepiped-shaped blocks of indices to be returned (we wanted to make use of this). I haven't found an easy way of doing this in 1d...

Btw I should have implemented the tests for the density transfer and fixed some bugs.

@mfherbst mfherbst merged commit bed5151 into JuliaMolSim:master Sep 16, 2023
5 of 8 checks passed
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.

3 participants