Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Nov 25, 2024
1 parent 2f491de commit 68cb71c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions source/module_hsolver/test/test_diago_hs_para.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,7 @@ void test_diago_hs(int lda, int nb, int random_seed, int nbands, int diag_type,
h_mat.resize(lda * lda);
s_mat.resize(lda * lda);
wfc.resize(lda * lda);
//generate_random_hs(lda, random_seed, h_mat, s_mat);
//read h from h.dat and s from s.dat,
std::ifstream hfile("h.dat");
hfile.read((char*)h_mat.data(), lda * lda * sizeof(T));
hfile.close();
std::ifstream sfile("s.dat");
sfile.read((char*)s_mat.data(), lda * lda * sizeof(T));
sfile.close();
generate_random_hs(lda, random_seed, h_mat, s_mat);
}
hsolver::Diago_HS_para<T>(h_mat.data(), s_mat.data(), lda, nbands,ekb.data(), wfc.data(), comm, diag_type, nb);

Expand Down
2 changes: 1 addition & 1 deletion tests/integrate/102_PW_DS_davsubspace_sca/INPUT
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ mixing_type plain
mixing_beta 0.5

ks_solver dav_subspace
diag_subspace_method 2
diag_subspace 2
nb2d 4

0 comments on commit 68cb71c

Please sign in to comment.