Skip to content

Commit f03c3e0

Browse files
committed
instantiate Diago_David by passing a Hamilt_PW
1 parent 328cf91 commit f03c3e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/src_pw/test/diago_david_test.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ class DiagoDavPrepare
7272

7373
//do Diago_David::diag()
7474
double* en = new double[npw];
75-
Diago_David dav;
75+
76+
Hamilt_PW hpw;
77+
Diago_David dav(&hpw);
7678
clock_t start,end;
7779
start = clock();
7880
dav.diag(psi,en,npw,nband,precondition,order,eps,maxiter,notconv,avg_iter);

0 commit comments

Comments
 (0)