@@ -135,7 +135,7 @@ void Input::Default(void)
135135// ----------------------------------------------------------
136136// electrons / spin
137137// ----------------------------------------------------------
138- dft_functional = " none " ;
138+ dft_functional = " default " ;
139139 nspin = 1 ;
140140 nelec = 0.0 ;
141141 lmaxmax = 2 ;
@@ -205,7 +205,6 @@ void Input::Default(void)
205205 vl_in_h = 1 ;
206206 vnl_in_h = 1 ;
207207 vh_in_h = 1 ;
208- vxc_in_h = 1 ;
209208 vion_in_h = 1 ;
210209 test_force = 0 ;
211210 test_stress = 0 ;
@@ -291,7 +290,6 @@ void Input::Default(void)
291290// ----------------------------------------------------------
292291// exx //Peize Lin add 2018-06-20
293292// ----------------------------------------------------------
294- exx_hybrid_type = " no" ;
295293
296294 exx_hybrid_alpha = 0.25 ;
297295 exx_hse_omega = 0.11 ;
@@ -800,10 +798,6 @@ bool Input::Read(const std::string &fn)
800798 {
801799 read_value (ifs, vh_in_h);
802800 }
803- else if (strcmp (" vxc_in_h" , word) == 0 )
804- {
805- read_value (ifs, vxc_in_h);
806- }
807801 else if (strcmp (" vion_in_h" , word) == 0 )
808802 {
809803 read_value (ifs, vion_in_h);
@@ -1263,9 +1257,9 @@ bool Input::Read(const std::string &fn)
12631257// exx
12641258// Peize Lin add 2018-06-20
12651259// ----------------------------------------------------------
1266- else if (strcmp (" exx_hybrid_type " , word) == 0 )
1260+ else if (strcmp (" dft_functional " , word) == 0 )
12671261 {
1268- read_value (ifs, exx_hybrid_type );
1262+ read_value (ifs, dft_functional );
12691263 }
12701264 else if (strcmp (" exx_hybrid_alpha" , word) == 0 )
12711265 {
@@ -1823,7 +1817,6 @@ void Input::Bcast()
18231817 Parallel_Common::bcast_int ( vl_in_h );
18241818 Parallel_Common::bcast_int ( vnl_in_h );
18251819 Parallel_Common::bcast_int ( vh_in_h );
1826- Parallel_Common::bcast_int ( vxc_in_h );
18271820 Parallel_Common::bcast_int ( vion_in_h );
18281821
18291822 Parallel_Common::bcast_int ( test_force );
@@ -1964,7 +1957,7 @@ void Input::Bcast()
19641957 Parallel_Common::bcast_int ( GlobalV::mulliken);// qifeng add 2019/9/10
19651958
19661959 // Peize Lin add 2018-06-20
1967- Parallel_Common::bcast_string ( exx_hybrid_type );
1960+ Parallel_Common::bcast_string ( dft_functional );
19681961 Parallel_Common::bcast_double ( exx_hybrid_alpha );
19691962 Parallel_Common::bcast_double ( exx_hse_omega );
19701963 Parallel_Common::bcast_bool ( exx_separate_loop );
@@ -2511,16 +2504,7 @@ void Input::Check(void)
25112504 }
25122505 }
25132506
2514- if (exx_hybrid_type!=" no" &&
2515- exx_hybrid_type!=" hf" &&
2516- exx_hybrid_type!=" pbe0" &&
2517- exx_hybrid_type!=" hse" &&
2518- exx_hybrid_type!=" opt_orb" )
2519- {
2520- ModuleBase::WARNING_QUIT (" INPUT" ," exx_hybrid_type must be no or hf or pbe0 or hse or opt_orb" );
2521- }
2522-
2523- if (exx_hybrid_type==" hf" || exx_hybrid_type==" pbe0" || exx_hybrid_type==" hse" )
2507+ if (dft_functional==" hf" || dft_functional==" pbe0" || dft_functional==" hse" )
25242508 {
25252509 if (exx_hybrid_alpha<0 || exx_hybrid_alpha>1 )
25262510 {
@@ -2542,7 +2526,7 @@ void Input::Check(void)
25422526 ModuleBase::WARNING_QUIT (" INPUT" ," exx_distribute_type must be htime or kmeans2 or kmeans1" );
25432527 }
25442528 }
2545- if (exx_hybrid_type ==" opt_orb" )
2529+ if (dft_functional ==" opt_orb" )
25462530 {
25472531 if (exx_opt_orb_lmax<0 )
25482532 {
0 commit comments