1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-07-17 16:33:59 +02:00

reordered index in ee_distance_rescaled that makes sense

This commit is contained in:
Gianfranco Abrusci 2022-02-16 18:09:02 +01:00
parent 05cfd10cc4
commit bf8cec7f3c

View File

@ -1735,7 +1735,8 @@ end function qmckl_compute_factor_ee_f
factor_ee[nw] = 0.0; // put init array here. factor_ee[nw] = 0.0; // put init array here.
for (int i = 0; i < elec_num; ++i ) { for (int i = 0; i < elec_num; ++i ) {
for (int j = 0; j < i; ++j) { for (int j = 0; j < i; ++j) {
x = ee_distance_rescaled[j * (walk_num * elec_num) + i * (walk_num) + nw]; //x = ee_distance_rescaled[j * (walk_num * elec_num) + i * (walk_num) + nw];
x = ee_distance_rescaled[j + i * elec_num + nw*(elec_num * elec_num)];
x1 = x; x1 = x;
power_ser = 0.0; power_ser = 0.0;
spin_fact = 1.0; spin_fact = 1.0;