From 2d30f9baf05c5ad35f880c617cdebb5f651f1fe2 Mon Sep 17 00:00:00 2001 From: Atsushi Togo Date: Mon, 9 Jun 2025 16:05:46 +0900 Subject: [PATCH] Fix comment in reciprocal_to_normal.c --- c/real_to_reciprocal.c | 2 +- c/reciprocal_to_normal.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/c/real_to_reciprocal.c b/c/real_to_reciprocal.c index a5cc46d9..32c5ea72 100644 --- a/c/real_to_reciprocal.c +++ b/c/real_to_reciprocal.c @@ -75,7 +75,7 @@ static lapack_complex_double get_pre_phase_factor( static lapack_complex_double sum_lapack_complex_double(lapack_complex_double a, lapack_complex_double b); -/* fc3_reciprocal[num_patom, num_patom, num_patom, 3, 3, 3] */ +/* fc3_reciprocal[num_patom, 3, num_patom, 3, num_patom, 3] */ void r2r_real_to_reciprocal(lapack_complex_double *fc3_reciprocal, const double q_vecs[3][3], const double *fc3, const int64_t is_compact_fc3, diff --git a/c/reciprocal_to_normal.c b/c/reciprocal_to_normal.c index cd31f0c2..dd338486 100644 --- a/c/reciprocal_to_normal.c +++ b/c/reciprocal_to_normal.c @@ -285,7 +285,8 @@ static double get_fc3_sum_blas_like(const lapack_complex_double *e0, num_band * num_band); for (i = 0; i < num_band; i++) { - memcpy(e_12 + i * num_band, e2, 16 * num_band); + memcpy(e_12 + i * num_band, e2, + sizeof(lapack_complex_double) * num_band); for (j = 0; j < num_band; j++) { e_12[i * num_band + j] = phonoc_complex_prod(e1[i], e_12[i * num_band + j]);