File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ void Input::Default(void)
374374
375375 cell_factor = 1.2 ; // LiuXh add 20180619
376376
377- GlobalV:: out_mul = 0 ; // qi feng add 2019/9/10
377+ out_mul = 0 ; // qi feng add 2019/9/10
378378
379379 // ---------------------------------------------------------- //Peize Lin add 2020-04-04
380380 // restart
@@ -1305,7 +1305,7 @@ bool Input::Read(const std::string &fn)
13051305 }
13061306 else if (strcmp (" out_mul" , word) == 0 )
13071307 {
1308- read_value (ifs, GlobalV:: out_mul);
1308+ read_value (ifs, out_mul);
13091309 } // qifeng add 2019/9/10
13101310 // ----------------------------------------------------------
13111311 // exx
@@ -2049,7 +2049,7 @@ void Input::Bcast()
20492049 Parallel_Common::bcast_bool (test_just_neighbor);
20502050 Parallel_Common::bcast_int (GlobalV::ocp);
20512051 Parallel_Common::bcast_string (GlobalV::ocp_set);
2052- Parallel_Common::bcast_int (GlobalV:: out_mul); // qifeng add 2019/9/10
2052+ Parallel_Common::bcast_int (out_mul); // qifeng add 2019/9/10
20532053
20542054 // Peize Lin add 2018-06-20
20552055 Parallel_Common::bcast_string (dft_functional);
Original file line number Diff line number Diff line change @@ -269,13 +269,16 @@ void Mulliken_Charge::cal_mulliken(LCAO_Hamilt &uhm)
269269}
270270
271271void Mulliken_Charge::stdout_mulliken (LCAO_Hamilt &uhm)
272- { this ->cal_mulliken (uhm);
272+ {
273+ this ->cal_mulliken (uhm);
274+
273275 if (GlobalV::MY_RANK == 0 )
274276 {
275277 ModuleBase::TITLE (" Dos" ," calculate_Mulliken" );
276278 std::ofstream fout;
277- const char * fn= " mulliken.txt" ;
278- fout.open (fn);
279+ std::stringstream ss;
280+ ss << GlobalV::global_out_dir <<" mulliken.txt" ;
281+ fout.open (ss.str ().c_str ());
279282 // std::ofstream fout;
280283 // std::string wordqf="mulliken.txt";
281284 // wordqf += char(GlobalV::MY_RANK + 48);
You can’t perform that action at this time.
0 commit comments