mirror of
https://github.com/TREX-CoE/Sherman-Morrison.git
synced 2024-12-26 14:23:47 +01:00
More changes to debug output.
This commit is contained in:
parent
de8e89df75
commit
ffbde8f88c
@ -65,6 +65,11 @@ void MaponiA3(double *Slater_inv, unsigned int Dim,
|
|||||||
|
|
||||||
// Calculate the y0k
|
// Calculate the y0k
|
||||||
for (k = 1; k < N_updates + 1; k++) {
|
for (k = 1; k < N_updates + 1; k++) {
|
||||||
|
#ifdef DEBUG
|
||||||
|
cout << "Compute y0k: " << endl;
|
||||||
|
cout << "ylk[0][" << k << "][:]" << endl;
|
||||||
|
cout << endl;
|
||||||
|
#endif
|
||||||
for (i = 1; i < Dim + 1; i++) {
|
for (i = 1; i < Dim + 1; i++) {
|
||||||
for (j = 1; j < Dim + 1; j++) {
|
for (j = 1; j < Dim + 1; j++) {
|
||||||
ylk[0][k][i] += Slater_inv[(i-1)*Dim + (j-1)]
|
ylk[0][k][i] += Slater_inv[(i-1)*Dim + (j-1)]
|
||||||
@ -118,7 +123,7 @@ void MaponiA3(double *Slater_inv, unsigned int Dim,
|
|||||||
cout << "Compute inverse. Inside l-loop: l = " << l << endl;
|
cout << "Compute inverse. Inside l-loop: l = " << l << endl;
|
||||||
cout << "component = Updates_index[p[" << k << "] - 1] = Updates_index[" << p[k] - 1 << "] = " << Updates_index[p[k] - 1] << endl;
|
cout << "component = Updates_index[p[" << k << "] - 1] = Updates_index[" << p[k] - 1 << "] = " << Updates_index[p[k] - 1] << endl;
|
||||||
cout << "beta = 1 + ylk[" << l << "][" << p[k] << "][" << component << "]" << endl;
|
cout << "beta = 1 + ylk[" << l << "][" << p[k] << "][" << component << "]" << endl;
|
||||||
cout << "ylk[" << l << "][" << p[k] << "][:]" << endl;
|
cout << "ylk[l][p[k]][:] = ylk[" << l << "][" << p[k] << "][:]" << endl;
|
||||||
cout << endl;
|
cout << endl;
|
||||||
#endif
|
#endif
|
||||||
for (i = 0; i < Dim; i++) {
|
for (i = 0; i < Dim; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user