-
Notifications
You must be signed in to change notification settings - Fork 229
Pexsi stage4 pattern reuse opt #7392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
8a3aea7
5978ae6
a872a63
8eb4e6e
a1f21da
c287a02
0602a18
be11350
0e844d4
7b0863c
36565e5
b3d5986
7eef88d
1b331d3
b8e78ff
fc44ba7
bf0ff7a
fed73cd
877b26e
8a2a370
63b1d25
1d16a60
88b0d8c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't need tex file in the code |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -403,7 +403,13 @@ void ESolver_KS_LCAO<TK, TR>::hamilt2rho_single(UnitCell& ucell, int istep, int | |
| // 3) run Hsolver | ||
| if (!skip_solve) | ||
| { | ||
| #ifdef __PEXSI | ||
| hsolver::HSolverLCAO<TK> hsolver_lcao_obj(&(this->pv), | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In fact, the code for solving the Kohn-Sham equations allows users to enable PEXSI optionally, or apply PEXSI for part of the computation — for instance, performing several PEXSI steps before switching to exact diagonalization. To maximize flexibility, macro definitions are not recommended for feature branching, as they tend to hardcode program logic. |
||
| PARAM.inp.ks_solver, | ||
| &this->pexsi_reuse_contexts_); | ||
| #else | ||
| hsolver::HSolverLCAO<TK> hsolver_lcao_obj(&(this->pv), PARAM.inp.ks_solver); | ||
| #endif | ||
| hsolver_lcao_obj.solve(static_cast<hamilt::Hamilt<TK>*>(this->p_hamilt), this->psi[0], this->pelec, *this->dmat.dm, | ||
| this->chr, PARAM.inp.nspin, skip_charge); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need your .tex file in this PR