Skip to content

Commit 4b81f5d

Browse files
committed
Fixed coupling coefficient issue in replacements within the internal orbital space.
1 parent 27ec32a commit 4b81f5d

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed

mpi_source/citruncate.c

+15-12
Original file line numberDiff line numberDiff line change
@@ -1830,22 +1830,25 @@ void generate_docc2actvx_actv1(int nrep, struct occstr str, int str_docc,
18301830
xlist[*numx].index = occstr2address(newstr, eosp, ndocc,
18311831
nactv, nvirt, elec,
18321832
elecs);
1833-
xlist[*numx].io[1] = str.istr[i];
1834-
xlist[*numx].io[0] = str.istr[j];
1835-
xlist[*numx].fo[0] = scr[k];
1836-
xlist[*numx].fo[1] = scr[l];
1837-
1838-
xlist[*numx].permx = pindex_double_rep_str(newstr.istr,
1839-
xlist[*numx].io[0],
1840-
xlist[*numx].fo[0],
1841-
xlist[*numx].io[1],
1842-
xlist[*numx].fo[1],
1843-
elec);
1833+
xlist[*numx].io[0] = str.istr[i];
1834+
xlist[*numx].io[1] = str.istr[j];
1835+
xlist[*numx].fo[0] = scr[l];
1836+
xlist[*numx].fo[1] = scr[k];
1837+
//xlist[*numx].permx = pindex_double_rep_str(newstr.istr,
1838+
// xlist[*numx].io[0],
1839+
// xlist[*numx].fo[0],
1840+
// xlist[*numx].io[1],
1841+
// xlist[*numx].fo[1],
1842+
// elec);
1843+
xlist[*numx].permx = pindex_double_rep_cas(newstr.byte1,
1844+
xlist[*numx].io,
1845+
xlist[*numx].fo,
1846+
intorb);
18441847
xlist[*numx].io[0] = str.istr[i];
18451848
xlist[*numx].fo[0] = str.istr[j];
18461849
xlist[*numx].fo[1] = scr[k];
18471850
xlist[*numx].io[1] = scr[l];
1848-
xlist[*numx].permx = xlist[*numx].permx * (-1);
1851+
//xlist[*numx].permx = xlist[*numx].permx * (-1);
18491852
(*numx)++;
18501853
}
18511854
}

mpi_source/pdavidson.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -215,20 +215,20 @@ int pdavidson(struct occstr *pstrings, struct eospace *peospace, int pegrps,
215215
fptr0 = fopen("v.vectors","w");
216216
GA_Print_file(fptr0, v_hndl);
217217
fclose(fptr0);
218-
perform_hv_initspace(pstrings, peospace, pegrps, qstrings,
219-
qeospace, qegrps, pq_space_pairs, num_pq,
220-
moints1, moints2, aelec, belec, intorb,
221-
ndets, totcore_e, ckdim, krymax, v_hndl, d_hndl,
222-
c_hndl, w_hndl, ga_buffer_len);
218+
//perform_hv_initspace(pstrings, peospace, pegrps, qstrings,
219+
// qeospace, qegrps, pq_space_pairs, num_pq,
220+
// moints1, moints2, aelec, belec, intorb,
221+
// ndets, totcore_e, ckdim, krymax, v_hndl, d_hndl,
222+
// c_hndl, w_hndl, ga_buffer_len);
223223
//perform_hvispacefast_debug(pstrings, peospace, pegrps, qstrings,
224224
// qeospace, qegrps, pq_space_pairs, num_pq,
225225
// moints1, moints2, aelec, belec, intorb,
226226
// ndets, totcore_e, ckdim, krymax, v_hndl, d_hndl,
227227
// c_hndl, w_hndl, ga_buffer_len, totalmo,
228228
// ndocc, nactv);
229229

230-
print_gavectors2file_dbl_trans(c_hndl, ndets, ckdim, "c.old");
231-
GA_Zero(c_hndl);
230+
//print_gavectors2file_dbl_trans(c_hndl, ndets, ckdim, "c.old");
231+
//GA_Zero(c_hndl);
232232

233233
#endif
234234

0 commit comments

Comments
 (0)