diff --git a/source/module_hamilt_general/module_xc/test/test_xc.cpp b/source/module_hamilt_general/module_xc/test/test_xc.cpp index c257afaf869..14a1e1c5aa4 100644 --- a/source/module_hamilt_general/module_xc/test/test_xc.cpp +++ b/source/module_hamilt_general/module_xc/test/test_xc.cpp @@ -14,6 +14,8 @@ namespace ModuleBase { void WARNING_QUIT(const std::string &file,const std::string &description) {exit(1);} + void TITLE(const std::string &class_function_name,bool disable){}; + void TITLE(const std::string &class_name,const std::string &function_name,bool disable){}; } namespace GlobalV diff --git a/source/module_hamilt_general/module_xc/test/test_xc1.cpp b/source/module_hamilt_general/module_xc/test/test_xc1.cpp index 9a5c45eebd3..09f3e018f20 100644 --- a/source/module_hamilt_general/module_xc/test/test_xc1.cpp +++ b/source/module_hamilt_general/module_xc/test/test_xc1.cpp @@ -14,6 +14,8 @@ namespace ModuleBase { void WARNING_QUIT(const std::string &file,const std::string &description) {exit(1);} + void TITLE(const std::string &class_function_name,bool disable){}; + void TITLE(const std::string &class_name,const std::string &function_name,bool disable){}; } namespace GlobalV diff --git a/source/module_hamilt_general/module_xc/test/test_xc2.cpp b/source/module_hamilt_general/module_xc/test/test_xc2.cpp index ad23626ac3a..e6135981258 100644 --- a/source/module_hamilt_general/module_xc/test/test_xc2.cpp +++ b/source/module_hamilt_general/module_xc/test/test_xc2.cpp @@ -13,6 +13,8 @@ namespace ModuleBase { void WARNING_QUIT(const std::string &file,const std::string &description) {exit(1);} + void TITLE(const std::string &class_function_name,bool disable){}; + void TITLE(const std::string &class_name,const std::string &function_name,bool disable){}; } namespace GlobalV diff --git a/source/module_hamilt_general/module_xc/test/test_xc4.cpp b/source/module_hamilt_general/module_xc/test/test_xc4.cpp index 41fd60f4254..293f04a741e 100644 --- a/source/module_hamilt_general/module_xc/test/test_xc4.cpp +++ b/source/module_hamilt_general/module_xc/test/test_xc4.cpp @@ -14,6 +14,8 @@ namespace ModuleBase { void WARNING_QUIT(const std::string &file,const std::string &description) {exit(1);} + void TITLE(const std::string &class_function_name,bool disable){}; + void TITLE(const std::string &class_name,const std::string &function_name,bool disable){}; } namespace GlobalV diff --git a/source/module_hamilt_general/module_xc/xc_functional.cpp b/source/module_hamilt_general/module_xc/xc_functional.cpp index 2fc74ffbb78..d5bc1920773 100644 --- a/source/module_hamilt_general/module_xc/xc_functional.cpp +++ b/source/module_hamilt_general/module_xc/xc_functional.cpp @@ -2,6 +2,7 @@ #include "module_hamilt_pw/hamilt_pwdft/global.h" #include "module_parameter/parameter.h" #include "module_base/global_function.h" +#include "module_base/tool_title.h" #ifdef USE_PAW #include "module_cell/module_paw/paw_cell.h" #endif @@ -71,6 +72,7 @@ method. */ // for detail, refer to https://www.tddft.org/programs/libxc/functionals/ void XC_Functional::set_xc_type(const std::string xc_func_in) { + ModuleBase::TITLE("XC_Functional", "set_xc_type"); //Note : due to the separation of gcx_spin and gcc_spin, //when you are adding new GGA functionals, //please put exchange first, followed by correlation, @@ -364,6 +366,7 @@ void XC_Functional::set_xc_type(const std::string xc_func_in) std::string XC_Functional::output_info() { + ModuleBase::TITLE("XC_Functional", "output_info"); #ifdef USE_LIBXC if(use_libxc) {