|
27 | 27 | #include "source_lcao/module_ri/Exx_LRI_interface.h" // use EXX codes |
28 | 28 | #include "source_lcao/module_ri/RPA_LRI.h" // use RPA code |
29 | 29 | #endif |
30 | | -// #include "source_lcao/module_rdmft/rdmft.h" // use RDMFT codes |
| 30 | +#include "source_lcao/module_rdmft/rdmft.h" // use RDMFT codes |
31 | 31 | #include "source_io/to_qo.h" // use toQO |
32 | 32 |
|
33 | 33 | namespace ModuleIO |
@@ -399,17 +399,17 @@ void ctrl_scf_lcao(UnitCell& ucell, |
399 | 399 | } |
400 | 400 | rdmft_solver.update_elec(ucell, occ_num, *psi); |
401 | 401 |
|
402 | | - // //! initialize the gradients of Etotal with respect to occupation numbers and wfc, |
403 | | - // //! and set all elements to 0. |
404 | | - // //! dedocc = d E/d Occ_Num |
405 | | - // ModuleBase::matrix dedocc(pelec->wg.nr, pelec->wg.nc, true); |
| 402 | + //! initialize the gradients of Etotal with respect to occupation numbers and wfc, |
| 403 | + //! and set all elements to 0. |
| 404 | + //! dedocc = d E/d Occ_Num |
| 405 | + ModuleBase::matrix dedocc(pelec->wg.nr, pelec->wg.nc, true); |
406 | 406 |
|
407 | | - // //! dedwfc = d E/d wfc |
408 | | - // psi::Psi<TK> dedwfc(psi->get_nk(), psi->get_nbands(), psi->get_nbasis(), kv.ngk, true); |
409 | | - // dedwfc.zero_out(); |
| 407 | + //! dedwfc = d E/d wfc |
| 408 | + psi::Psi<TK> dedwfc(psi->get_nk(), psi->get_nbands(), psi->get_nbasis(), kv.ngk, true); |
| 409 | + dedwfc.zero_out(); |
410 | 410 |
|
411 | | - // double etot_rdmft = rdmft_solver.run(dedocc, dedwfc); |
412 | | - // } |
| 411 | + double etot_rdmft = rdmft_solver.run(dedocc, dedwfc); |
| 412 | + } |
413 | 413 |
|
414 | 414 | //------------------------------------------------------------------ |
415 | 415 | //! 17) Output quasi orbitals |
|
0 commit comments