Skip to content

Commit 1ea8072

Browse files
authored
Fix TDDFT ncut and cusolver bug (#5238)
1 parent 0f0c838 commit 1ea8072

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

source/module_elecstate/elecstate_lcao_tddft.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,8 @@ void ElecStateLCAO_TDDFT::psiToRho_td(const psi::Psi<std::complex<double>>& psi)
2222

2323
// this part for calculating DMK in 2d-block format, not used for charge now
2424
// psi::Psi<std::complex<double>> dm_k_2d();
25-
26-
if (PARAM.inp.ks_solver == "genelpa" || PARAM.inp.ks_solver == "scalapack_gvx"
27-
|| PARAM.inp.ks_solver == "lapack") // Peize Lin test 2019-05-15
28-
{
29-
elecstate::cal_dm_psi(this->DM->get_paraV_pointer(), this->wg, psi, *(this->DM));
30-
this->DM->cal_DMR();
31-
}
25+
elecstate::cal_dm_psi(this->DM->get_paraV_pointer(), this->wg, psi, *(this->DM));
26+
this->DM->cal_DMR();
3227

3328
for (int is = 0; is < PARAM.inp.nspin; is++)
3429
{

source/module_elecstate/potentials/H_TDDFT_pw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ int H_TDDFT_pw::check_ncut(int t_type)
227227
break;
228228

229229
case 3:
230-
ncut = 1;
230+
ncut = 2;
231231
break;
232232

233233
// case 4:

0 commit comments

Comments
 (0)