@@ -212,7 +212,7 @@ void ESolver_DirectMin_LCAO::runner(UnitCell& ucell, const int istep)
212212 // Route 2: Joint optimization on product manifold
213213 std::cout << " Using joint optimization (Route 1)" << std::endl;
214214 this ->solver ->Run ();
215-
215+
216216 } else if (this ->rdmft_loop_layer_ == 2 ) {
217217 // Route 1: Hybrid two-level optimization
218218 std::cout << " Using hybrid two-level optimization (Route 2)" << std::endl;
@@ -287,10 +287,6 @@ void ESolver_DirectMin_LCAO::initialize(UnitCell& ucell, const Input_para& inp)
287287}
288288
289289
290- void ESolver_DirectMin_LCAO::setup_pw_basis (UnitCell& ucell, const Input_para& inp)
291- {
292- // Implementation of setup_pw_basis
293- }
294290
295291
296292// template <typename TK, typename TR>
@@ -332,15 +328,6 @@ void ESolver_DirectMin_LCAO::setup_problem(UnitCell& ucell, const Input_para& in
332328 ModuleBase::WARNING_QUIT (" ESolver_DirectMin_LCAO" , " Only LCAO basis is supported for RDMFT in DirectMin" );
333329 }
334330
335- // // check optimization route
336- // if(inp.rdmftp.rdmft_loop_layer == 1)
337- // {
338- // this->setup_joint_optimization(ucell, inp);
339- // }
340- // else if(inp.rdmftp.rdmft_loop_layer == 2)
341- // {
342- // this->setup_hybrid_optimization(ucell, inp);
343- // }
344331 }
345332 else
346333 {
@@ -631,47 +618,6 @@ void ESolver_DirectMin_LCAO::optimize_occupations_fixed_orbitals()
631618 std::cout << " [DirectMin] Running occupation solver (stub)." << std::endl;
632619}
633620
634- // void ESolver_DirectMin_LCAO::setup_joint_optimization(UnitCell& ucell, const Input_para& inp)
635- // {
636- // ModuleBase::GlobalFunc::OUT(GlobalV::ofs_running, "setup_joint_optimization", "Stub implementation");
637-
638- // if (inp.directmin_objective == "test")
639- // {
640- // this->prob = new TEST(ucell, inp);
641- // }
642- // else
643- // {
644- // this->prob = new RDMFT_LCAO
645- // // std::cout << "[DirectMin] RDMFT joint optimization problem setup is not implemented yet." << std::endl;
646- // // this->prob = nullptr;
647- // }
648-
649- // if (this->prob != nullptr)
650- // {
651- // Manifold* space = this->prob->GetDomain();
652- // if (space != nullptr)
653- // {
654- // this->X = space->RandominManifold();
655- // }
656- // }
657- // }
658-
659- // void ESolver_DirectMin_LCAO::run_joint_optimization(UnitCell& /*ucell*/)
660- // {
661- // ModuleBase::GlobalFunc::OUT(GlobalV::ofs_running, "run_joint_optimization", "Stub implementation");
662-
663- // if (this->solver == nullptr)
664- // {
665- // std::cout << "[DirectMin] Joint optimization solver not initialized." << std::endl;
666- // return;
667- // }
668-
669- // std::cout << "[DirectMin] Running joint solver." << std::endl;
670-
671- // this->solver->Run();
672-
673- // std::cout << "[DirectMin] Joint optimization complete." << std::endl;
674- // }
675621
676622// Add missing utility methods
677623void ESolver_DirectMin_LCAO::print_iteration_info (int iter, double energy, double grad_norm) const
0 commit comments