Skip to content

Faster mode transformation in calculating reciprocal-space IFCs. - #169

Merged
ttadano merged 23 commits into
alamode-code:developfrom
r-masuki:develop
Feb 15, 2024
Merged

ttadano merged 23 commits into
alamode-code:developfrom
r-masuki:develop

Conversation

@r-masuki

Copy link
Copy Markdown
Collaborator

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)$.
Here, the computational cost of this tranformation is nearly $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.
Please see Scph::compute_V4_elements_mpi_over_kpoint and Scph::compute_V4_elements_mpi_over_band for 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_kpoint and Scph::compute_V3_elements_for_given_IFCs.

…_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.
Scph::compute_V4_elements_mpi_over_kpoint
in the case of SELF_OFFDIAG = 0.

The code includes the test outputs.
@ttadano
ttadano merged commit bbdf218 into alamode-code:develop Feb 15, 2024
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