mirror of https://github.com/phonopy/phono3py.git
Zero clear of temporary array
This commit is contained in:
parent
cedd2477d8
commit
e4f37dba71
|
@ -262,6 +262,9 @@ static double get_fc3_sum(const lapack_complex_double *e1,
|
|||
|
||||
fc3_e0_e1 = (lapack_complex_double *)malloc(sizeof(lapack_complex_double) *
|
||||
num_band);
|
||||
for (i = 0; i < num_band; i++) {
|
||||
fc3_e0_e1[i] = lapack_make_complex_double(0, 0);
|
||||
}
|
||||
|
||||
for (i = 0; i < num_band; i++) {
|
||||
for (j = 0; j < num_band; j++) {
|
||||
|
|
Loading…
Reference in New Issue