|
7 | 7 | #include "source_estate/module_charge/symmetry_rho.h" |
8 | 8 | #include "source_lcao/LCAO_domain.h" // need DeePKS_init |
9 | 9 | #include "source_lcao/module_dftu/dftu.h" |
10 | | -#ifdef __MLALGO |
11 | | -#include "source_lcao/module_deepks/LCAO_deepks.h" |
12 | | -#include "source_lcao/module_deepks/LCAO_deepks_interface.h" |
13 | | -#endif |
14 | 10 | #include "source_lcao/FORCE_STRESS.h" |
15 | 11 | #include "source_estate/elecstate_lcao.h" |
16 | 12 | #include "source_lcao/hamilt_lcao.h" |
@@ -336,43 +332,6 @@ void ESolver_KS_LCAO<TK, TR>::iter_init(UnitCell& ucell, const int istep, const |
336 | 332 | } |
337 | 333 | #endif |
338 | 334 | elecstate::setup_dm<TK>(ucell, estate, this->psi, this->chr, iter, exx_two_level_step); |
339 | | - |
340 | | -/* |
341 | | - if (iter == 1 && exx_two_level_step == 0) |
342 | | - { |
343 | | - std::cout << " WAVEFUN -> CHARGE " << std::endl; |
344 | | -
|
345 | | - // calculate the density matrix using read in wave functions |
346 | | - // and then calculate the charge density on grid. |
347 | | -
|
348 | | - estate->skip_weights = true; |
349 | | - elecstate::calculate_weights(estate->ekb, |
350 | | - estate->wg, |
351 | | - estate->klist, |
352 | | - estate->eferm, |
353 | | - estate->f_en, |
354 | | - estate->nelec_spin, |
355 | | - estate->skip_weights); |
356 | | -
|
357 | | - elecstate::calEBand(estate->ekb, estate->wg, estate->f_en); |
358 | | - elecstate::cal_dm_psi(estate->DM->get_paraV_pointer(), estate->wg, *this->psi, *(estate->DM)); |
359 | | - estate->DM->cal_DMR(); |
360 | | -
|
361 | | - estate->psiToRho(*this->psi); |
362 | | - estate->skip_weights = false; |
363 | | -
|
364 | | - elecstate::cal_ux(ucell); |
365 | | -
|
366 | | - //! update the potentials by using new electron charge density |
367 | | - estate->pot->update_from_charge(&this->chr, &ucell); |
368 | | -
|
369 | | - //! compute the correction energy for metals |
370 | | - estate->f_en.descf = estate->cal_delta_escf(); |
371 | | - } |
372 | | -
|
373 | | -*/ |
374 | | - |
375 | | - |
376 | 335 | } |
377 | 336 |
|
378 | 337 | #ifdef __EXX |
@@ -409,11 +368,6 @@ void ESolver_KS_LCAO<TK, TR>::iter_init(UnitCell& ucell, const int istep, const |
409 | 368 | { |
410 | 369 | this->p_hamilt->refresh(); |
411 | 370 | } |
412 | | - // if (iter == 1 && istep == 0) |
413 | | - // { |
414 | | - // // initialize DMR |
415 | | - // this->deepks.ld.init_DMR(ucell, orb_, this->pv, this->gd); |
416 | | - // } |
417 | 371 | #endif |
418 | 372 |
|
419 | 373 | if (PARAM.inp.vl_in_h) |
|
0 commit comments