77namespace ModuleIO
88{
99
10- void setup_parameters (UnitCell& ucell, K_Vectors& kv)
10+ void print_parameters (
11+ const UnitCell& ucell,
12+ K_Vectors& kv,
13+ const Input_para& inp)
1114{
12- ModuleBase::TITLE (" ModuleIO" , " setup_parameters " );
13-
14- if (PARAM. inp .calculation ==" scf"
15- || PARAM. inp .calculation ==" relax"
16- || PARAM. inp .calculation ==" cell-relax"
17- || PARAM. inp .calculation ==" nscf"
18- || PARAM. inp .calculation ==" get_pchg"
19- || PARAM. inp .calculation ==" get_wf"
20- || PARAM. inp .calculation ==" md" )
15+ ModuleBase::TITLE (" ModuleIO" , " print_parameters " );
16+
17+ if (inp.calculation ==" scf"
18+ || inp.calculation ==" relax"
19+ || inp.calculation ==" cell-relax"
20+ || inp.calculation ==" nscf"
21+ || inp.calculation ==" get_pchg"
22+ || inp.calculation ==" get_wf"
23+ || inp.calculation ==" md" )
2124 {
2225 std::cout << " ---------------------------------------------------------" << std::endl;
23- if (PARAM. inp .calculation ==" scf" )
26+ if (inp.calculation ==" scf" )
2427 {
2528 std::cout << " Self-consistent calculations for electrons" << std::endl;
2629 }
27- else if (PARAM. inp .calculation ==" test" )
30+ else if (inp.calculation ==" test" )
2831 {
2932 std::cout << " Test run" << std::endl;
3033 }
31- if (PARAM. inp .calculation ==" relax" )
34+ if (inp.calculation ==" relax" )
3235 {
3336 std::cout << " Ion relaxation calculations" << std::endl;
3437 }
35- if (PARAM. inp .calculation ==" cell-relax" )
38+ if (inp.calculation ==" cell-relax" )
3639 {
3740 std::cout << " Cell relaxation calculations" << std::endl;
3841 }
39- if (PARAM. inp .calculation ==" md" )
42+ if (inp.calculation ==" md" )
4043 {
4144 std::cout << " Molecular Dynamics simulations" << std::endl;
4245
@@ -79,12 +82,12 @@ void setup_parameters(UnitCell& ucell, K_Vectors& kv)
7982 << std::setw (12 ) << " PROCESSORS"
8083 << std::setw (12 ) << " THREADS" ;
8184
82- const bool orbinfo = (PARAM. inp .basis_type ==" lcao" || PARAM. inp .basis_type ==" lcao_in_pw"
83- || (PARAM. inp .basis_type ==" pw" && PARAM. inp .init_wfc .substr (0 , 3 ) == " nao" ));
85+ const bool orbinfo = (inp.basis_type ==" lcao" || inp.basis_type ==" lcao_in_pw"
86+ || (inp.basis_type ==" pw" && inp.init_wfc .substr (0 , 3 ) == " nao" ));
8487 if (orbinfo) { std::cout << std::setw (12 ) << " NBASE" ; }
8588
8689 std::cout << std::endl;
87- std::cout << " " << std::setw (8 ) << PARAM. inp .nspin ;
90+ std::cout << " " << std::setw (8 ) << inp.nspin ;
8891
8992 if (PARAM.globalv .gamma_only_local )
9093 {
@@ -105,15 +108,15 @@ void setup_parameters(UnitCell& ucell, K_Vectors& kv)
105108
106109
107110 std::cout << " ---------------------------------------------------------" << std::endl;
108- if (PARAM. inp .basis_type == " lcao" )
111+ if (inp.basis_type == " lcao" )
109112 {
110113 std::cout << " Use Systematically Improvable Atomic bases" << std::endl;
111114 }
112- else if (PARAM. inp .basis_type == " lcao_in_pw" )
115+ else if (inp.basis_type == " lcao_in_pw" )
113116 {
114117 std::cout << " Expand Atomic bases into plane waves" << std::endl;
115118 }
116- else if (PARAM. inp .basis_type == " pw" )
119+ else if (inp.basis_type == " pw" )
117120 {
118121 std::cout << " Use plane wave basis" << std::endl;
119122 }
0 commit comments