Repository navigation
Faster mode transformation in calculating reciprocal-space IFCs. - #169
Merged
Merged
Conversation
…_over_kpoint. The code include the debug code.
…pi_over_kpoint. The code include the debug outputs. Note that I am in the middle of implementing faster mode transformation in Scph::compute_V4_elements_mpi_over_band.
…or_given_IFCs. The code includes the debug lines.
…over_band before implementing the faster mode transformation.
The code include the debug outputs.
Note that the elements Phi(-k is1, k is2, ...) with is1>is2 are calculated as well.
…ts_mpi_over_band.
Scph::compute_V4_elements_mpi_over_kpoint in the case of SELF_OFFDIAG = 0. The code includes the test outputs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented the faster mode transformation in calculating the reciprocal-space representation of the IFCs.
The mode-transformation of the quartic IFCs from the Cartesian ($\alpha,\mu$ ) representation to the normal coordinate ($\lambda$ ) representation can be written as
$\widetilde{\Phi}(-k\lambda_1,k\lambda_2, k' \lambda_3,-k'\lambda_4)$ = $\sum_{\alpha\mu} \epsilon_{k\lambda_1,\alpha_1\mu_1}^{*} \epsilon_{k\lambda_2,\alpha_2\mu_2} \epsilon_{k'\lambda_3,\alpha_3\mu_3} \epsilon_{k'\lambda_4,\alpha_4\mu_4}^{*} \widetilde{\Phi}_{\mu_1\mu_2\mu_3\mu_4}(-k\alpha_1,k\alpha_2, k' \alpha_3,-k'\alpha_4)$ .$O(\text{ns}^8)$ in the straightforward implementation. However, it can be reduced to $O(\text{ns}^5)$ by separately performing the transformation on each index. $\text{ns}$ is the number of phonon branches.
Here, the computational cost of this tranformation is nearly
Please see
Scph::compute_V4_elements_mpi_over_kpointandScph::compute_V4_elements_mpi_over_bandfor the details and the implementation.The similar speedup can be applied to the mode transformation of cubic IFCs as well, which is implemented in
Scph::compute_V3_elements_mpi_over_kpointandScph::compute_V3_elements_for_given_IFCs.