@@ -22,19 +22,7 @@ namespace ModuleESolver
2222{
2323 class ESolver_FP : public ESolver
2424 {
25- public:
26-
27- ModulePW::PW_Basis* pw_rho;
28-
29- /* *
30- * @brief same as pw_rho for ncpp. Here 'd' stands for 'dense'
31- * dense grid for for uspp, used for ultrasoft augmented charge density.
32- * charge density and potential are defined on dense grids,
33- * but effective potential needs to be interpolated on smooth grids in order to compute Veff|psi>
34- */
35- ModulePW::PW_Basis* pw_rhod;
36- ModulePW::PW_Basis_Big* pw_big; // /< [temp] pw_basis_big class
37-
25+ public:
3826 // ! Constructor
3927 ESolver_FP ();
4028
@@ -44,6 +32,10 @@ namespace ModuleESolver
4432 // ! Initialize of the first-principels energy solver
4533 virtual void before_all_runners (const Input_para& inp, UnitCell& cell) override ;
4634
35+ protected:
36+ // ! Something to do after SCF iterations when SCF is converged or comes to the max iter step.
37+ virtual void after_scf (const int istep);
38+
4739 virtual void init_after_vc (const Input_para& inp, UnitCell& cell); // liuyu add 2023-03-09
4840
4941 // ! Electronic states
@@ -58,9 +50,16 @@ namespace ModuleESolver
5850 // ! K points in Brillouin zone
5951 K_Vectors kv;
6052
61- protected:
62- // ! Something to do after SCF iterations when SCF is converged or comes to the max iter step.
63- virtual void after_scf (const int istep);
53+ ModulePW::PW_Basis* pw_rho;
54+
55+ /* *
56+ * @brief same as pw_rho for ncpp. Here 'd' stands for 'dense'
57+ * dense grid for for uspp, used for ultrasoft augmented charge density.
58+ * charge density and potential are defined on dense grids,
59+ * but effective potential needs to be interpolated on smooth grids in order to compute Veff|psi>
60+ */
61+ ModulePW::PW_Basis* pw_rhod;
62+ ModulePW::PW_Basis_Big* pw_big; // /< [temp] pw_basis_big class
6463
6564 // ! Charge extrapolation
6665 Charge_Extra CE;
0 commit comments