mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-12-23 04:44:03 +01:00
reordered index in ee_distance_rescaled that makes sense
This commit is contained in:
parent
05cfd10cc4
commit
bf8cec7f3c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user