Skip to content

Commit 27b0259

Browse files
committed
yij implemented for all single excitations
1 parent 6271c38 commit 27b0259

File tree

1 file changed

+27
-17
lines changed

1 file changed

+27
-17
lines changed

mpi_source/citruncate.c

+27-17
Original file line numberDiff line numberDiff line change
@@ -809,9 +809,9 @@ void generate_actvx(int nrep, struct occstr str, int str_docc, int str_actv,
809809
xlist[*numx].fo[0] = scr[j];
810810
xlist[*numx].fo[1] = 0;
811811

812-
xlist[*numx].permx = pindex_single_rep(str.istr, str.istr[i],
813-
scr[j], elec);
814-
812+
//xlist[*numx].permx = pindex_single_rep(str.istr, str.istr[i],
813+
// scr[j], elec);
814+
xlist[*numx].permx = str.yij[i][scr[j]];
815815
(*numx)++;
816816
}
817817
}
@@ -919,9 +919,10 @@ void generate_actv2virtx(int nrep, struct occstr str, int str_docc, int str_actv
919919
xlist[*numx].fo[0] = scr[j];
920920
xlist[*numx].fo[1] = 0;
921921

922-
xlist[*numx].permx = pindex_single_rep(str.istr, str.istr[i],
923-
scr[j], elec);;
924-
922+
// xlist[*numx].permx = pindex_single_rep(str.istr, str.istr[i],
923+
// scr[j], elec);;
924+
xlist[*numx].permx = str.yij[i][scr[j]];
925+
925926
(*numx)++;
926927
}
927928
}
@@ -999,8 +1000,9 @@ void generate_actv2virtx(int nrep, struct occstr str, int str_docc, int str_actv
9991000
xlist[*numx].fo[0] = scr[i];
10001001
xlist[*numx].fo[1] = 0;
10011002

1002-
xlist[*numx].permx = pindex_single_rep(str.istr, str.virtx[j],
1003-
scr[i], elec);;
1003+
// xlist[*numx].permx = pindex_single_rep(str.istr, str.virtx[j],
1004+
// scr[i], elec);;
1005+
xlist[*numx].permx = str.yij[str_docc + str_actv + j][scr[i]];
10041006
(*numx)++;
10051007
}
10061008
}
@@ -1698,8 +1700,10 @@ void generate_docc2actvx(int nrep, struct occstr str, int str_docc, int str_actv
16981700
xlist[*numx].fo[0] = scr[j];
16991701
xlist[*numx].fo[1] = 0;
17001702

1701-
xlist[*numx].permx = pindex_single_rep(str.istr, str.istr[i],
1702-
scr[j], elec);;
1703+
//xlist[*numx].permx = pindex_single_rep(str.istr, str.istr[i],
1704+
// scr[j], elec);
1705+
xlist[*numx].permx = str.yij[i][scr[j]];
1706+
17031707
(*numx)++;
17041708
}
17051709
}
@@ -1766,6 +1770,7 @@ void generate_docc2actvx(int nrep, struct occstr str, int str_docc, int str_actv
17661770

17671771
xlist[*numx].permx = pindex_single_rep(str.istr, str.istr[i],
17681772
scr[j], elec);;
1773+
xlist[*numx].permx = str.yij[i][scr[j]];
17691774
(*numx)++;
17701775
}
17711776
}
@@ -3186,8 +3191,9 @@ void generate_docc2virtx(int nrep, struct occstr str, int str_docc, int str_actv
31863191
xlist[*numx].fo[0] = scr[j];
31873192
xlist[*numx].fo[1] = 0;
31883193

3189-
xlist[*numx].permx = pindex_single_rep(str.istr, str.istr[i],
3190-
scr[j], elec);;
3194+
// xlist[*numx].permx = pindex_single_rep(str.istr, str.istr[i],
3195+
// scr[j], elec);;
3196+
xlist[*numx].permx = str.yij[i][scr[j]];
31913197
(*numx)++;
31923198
}
31933199
}
@@ -3266,8 +3272,9 @@ void generate_docc2virtx(int nrep, struct occstr str, int str_docc, int str_actv
32663272
xlist[*numx].fo[0] = scr[i];
32673273
xlist[*numx].fo[1] = 0;
32683274

3269-
xlist[*numx].permx = pindex_single_rep(str.istr, str.virtx[j],
3270-
scr[i], elec);;
3275+
// xlist[*numx].permx = pindex_single_rep(str.istr, str.virtx[j],
3276+
// scr[i], elec);;
3277+
xlist[*numx].permx = str.yij[str_docc + str_actv + j][scr[i]];
32713278
(*numx)++;
32723279
}
32733280
}
@@ -3354,8 +3361,10 @@ void generate_doccx(int nrep, struct occstr str, int str_docc, int str_actv,
33543361
xlist[*numx].fo[0] = scr[j];
33553362
xlist[*numx].fo[1] = 0;
33563363

3357-
xlist[*numx].permx = pindex_single_rep(str.istr, str.istr[i],
3358-
scr[j], elec);;
3364+
//xlist[*numx].permx = pindex_single_rep(str.istr, str.istr[i],
3365+
// scr[j], elec);
3366+
3367+
xlist[*numx].permx = str.yij[i][scr[j]];
33593368
(*numx)++;
33603369
}
33613370
}
@@ -3452,7 +3461,8 @@ void generate_virtx(int nrep, struct occstr str, int str_docc, int str_actv,
34523461
xlist[*numx].fo[1] = 0;
34533462

34543463
xlist[*numx].permx = pindex_single_rep(str.istr, str.virtx[i],
3455-
scr[j], elec);;
3464+
scr[j], elec);
3465+
xlist[*numx].permx = str.yij[str_docc + str_actv + i][scr[j]];
34563466
(*numx)++;
34573467
}
34583468
}

0 commit comments

Comments
 (0)