|
20 | 20 | #include "source_io/print_info.h" |
21 | 21 | #include "source_lcao/rho_tau_lcao.h" // mohan add 20251024 |
22 | 22 | #include "source_lcao/LCAO_set.h" // mohan add 20251111 |
23 | | -#include "source_lcao/module_operator_lcao/overlap_new.h" |
24 | 23 |
|
25 | 24 | namespace ModuleESolver |
26 | 25 | { |
@@ -555,37 +554,10 @@ void ESolver_KS_LCAO<TK, TR>::after_scf(UnitCell& ucell, const int istep, const |
555 | 554 | PARAM.inp, this->kv, this->pelec, this->dmat.dm, this->pv, |
556 | 555 | this->gd, this->psi, hamilt_lcao, this->dftu, this->two_center_bundle_, |
557 | 556 | this->orb_, this->pw_wfc, this->pw_rho, this->pw_big, this->sf, |
558 | | - this->rdmft_solver, this->deepks, this->exx_nao, |
| 557 | + this->rdmft_solver, this->deepks, this->exx_nao, |
559 | 558 | this->conv_esolver, this->scf_nmax_flag, istep); |
560 | 559 |
|
561 | | - //! 3) Calculate and output asynchronous overlap matrix for Hefei-NAMD |
562 | | - if (PARAM.inp.cal_syns && (istep > 0 || PARAM.inp.init_vel)) |
563 | | - { |
564 | | - // Create a new OverlapNew instance specifically for SR_async calculation |
565 | | - // This allows SR_async to be initialized with velocity-shifted dtau |
566 | | - hamilt::OverlapNew<hamilt::OperatorLCAO<TK, TR>>* overlap_async = |
567 | | - new hamilt::OverlapNew<hamilt::OperatorLCAO<TK, TR>>( |
568 | | - nullptr, // hsk_in: not needed for SR_async calculation |
569 | | - this->kv.kvec_d, |
570 | | - nullptr, // hR_in: not needed for SR_async calculation |
571 | | - nullptr, // SR_in: not needed for SR_async calculation |
572 | | - &ucell, |
573 | | - this->orb_.cutoffs(), |
574 | | - &this->gd, |
575 | | - this->two_center_bundle_.overlap_orb.get()); |
576 | | - |
577 | | - // Use same precision as DMR output (default 8 if not specified) |
578 | | - const int precision = PARAM.inp.out_dmr[0] > 0 ? PARAM.inp.out_dmr[1] : 8; |
579 | | - const Parallel_Orbitals* paraV = hamilt_lcao->getSR()->get_paraV(); |
580 | | - hamilt::HContainer<TR>* SR_async = overlap_async->calculate_SR_async(ucell, PARAM.mdp.md_dt, paraV); |
581 | | - overlap_async->output_SR_async_csr(istep, SR_async, precision); |
582 | | - |
583 | | - // Clean up |
584 | | - delete SR_async; |
585 | | - delete overlap_async; |
586 | | - } |
587 | | - |
588 | | - //! 4) Clean up RA, which is used to serach for adjacent atoms |
| 560 | + //! 3) Clean up RA, which is used to serach for adjacent atoms |
589 | 561 | if (!PARAM.inp.cal_force && !PARAM.inp.cal_stress) |
590 | 562 | { |
591 | 563 | this->RA.delete_grid(); |
|
0 commit comments