|
1 | 1 | #include "ORB_atomic_lm.h" |
2 | 2 | #include "source_base/sph_bessel_recursive.h" |
3 | | -#include "source_io/module_parameter/parameter.h" |
| 3 | +#include "source_base/global_variable.h" |
| 4 | +#include "source_base/tool_quit.h" |
4 | 5 | #include "source_base/module_external/blas_connector.h" |
5 | 6 | #include "source_base/timer.h" |
6 | 7 | #include "source_base/math_integral.h" |
@@ -383,7 +384,7 @@ void Numerical_Orbital_Lm::use_uniform(const double &dr_uniform_in) |
383 | 384 | if(GlobalV::MY_RANK==0) |
384 | 385 | { |
385 | 386 | std::stringstream ss; |
386 | | - ss << PARAM.globalv.global_out_dir << this->label << "/" |
| 387 | + ss << ModuleBase::get_global_out_dir() << this->label << "/" |
387 | 388 | << this->label << "-" << orbital_type << ".ORBITAL_NOR_uniform.txt"; |
388 | 389 |
|
389 | 390 | std::ofstream ofs(ss.str().c_str()); |
@@ -722,16 +723,16 @@ void Numerical_Orbital_Lm::plot(void)const |
722 | 723 | if(GlobalV::MY_RANK==0) |
723 | 724 | { |
724 | 725 | std::stringstream ssr, ssk, ssru ,ssdru; // 2013-08-10 pengfei |
725 | | - ssr << PARAM.globalv.global_out_dir << this->label << "/" |
| 726 | + ssr << ModuleBase::get_global_out_dir() << this->label << "/" |
726 | 727 | << this->label << "-"<< orbital_type << index_chi+1 << "-orbital-r.dat"; |
727 | 728 |
|
728 | | - ssk << PARAM.globalv.global_out_dir << this->label << "/" |
| 729 | + ssk << ModuleBase::get_global_out_dir() << this->label << "/" |
729 | 730 | << this->label << "-" << orbital_type << index_chi+1 << "-orbital-k.dat"; |
730 | 731 |
|
731 | | - ssru << PARAM.globalv.global_out_dir << this->label << "/" |
| 732 | + ssru << ModuleBase::get_global_out_dir() << this->label << "/" |
732 | 733 | << this->label << "-" << orbital_type << index_chi+1 << "-orbital-ru.dat"; |
733 | 734 |
|
734 | | - ssdru << PARAM.globalv.global_out_dir << this->label << "/" // 2013-08-10 pengfei |
| 735 | + ssdru << ModuleBase::get_global_out_dir() << this->label << "/" // 2013-08-10 pengfei |
735 | 736 | << this->label << "-" << orbital_type << index_chi+1 << "-orbital-dru.dat"; |
736 | 737 |
|
737 | 738 | std::ofstream ofsr(ssr.str().c_str()); |
|
0 commit comments