Skip to content

Commit 51f3c1c

Browse files
linpeizePeizeLin
andauthored
Fix TITLE() in module_xc (deepmodeling#7329)
Co-authored-by: linpz <linpz@mail.ustc.edu.cn>
1 parent b9c0d21 commit 51f3c1c

5 files changed

Lines changed: 11 additions & 0 deletions

File tree

source/module_hamilt_general/module_xc/test/test_xc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
namespace ModuleBase
1515
{
1616
void WARNING_QUIT(const std::string &file,const std::string &description) {exit(1);}
17+
void TITLE(const std::string &class_function_name,bool disable){};
18+
void TITLE(const std::string &class_name,const std::string &function_name,bool disable){};
1719
}
1820

1921
namespace GlobalV

source/module_hamilt_general/module_xc/test/test_xc1.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
namespace ModuleBase
1515
{
1616
void WARNING_QUIT(const std::string &file,const std::string &description) {exit(1);}
17+
void TITLE(const std::string &class_function_name,bool disable){};
18+
void TITLE(const std::string &class_name,const std::string &function_name,bool disable){};
1719
}
1820

1921
namespace GlobalV

source/module_hamilt_general/module_xc/test/test_xc2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
namespace ModuleBase
1414
{
1515
void WARNING_QUIT(const std::string &file,const std::string &description) {exit(1);}
16+
void TITLE(const std::string &class_function_name,bool disable){};
17+
void TITLE(const std::string &class_name,const std::string &function_name,bool disable){};
1618
}
1719

1820
namespace GlobalV

source/module_hamilt_general/module_xc/test/test_xc4.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
namespace ModuleBase
1515
{
1616
void WARNING_QUIT(const std::string &file,const std::string &description) {exit(1);}
17+
void TITLE(const std::string &class_function_name,bool disable){};
18+
void TITLE(const std::string &class_name,const std::string &function_name,bool disable){};
1719
}
1820

1921
namespace GlobalV

source/module_hamilt_general/module_xc/xc_functional.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "module_hamilt_pw/hamilt_pwdft/global.h"
33
#include "module_parameter/parameter.h"
44
#include "module_base/global_function.h"
5+
#include "module_base/tool_title.h"
56
#ifdef USE_PAW
67
#include "module_cell/module_paw/paw_cell.h"
78
#endif
@@ -71,6 +72,7 @@ method. */
7172
// for detail, refer to https://www.tddft.org/programs/libxc/functionals/
7273
void XC_Functional::set_xc_type(const std::string xc_func_in)
7374
{
75+
ModuleBase::TITLE("XC_Functional", "set_xc_type");
7476
//Note : due to the separation of gcx_spin and gcc_spin,
7577
//when you are adding new GGA functionals,
7678
//please put exchange first, followed by correlation,
@@ -364,6 +366,7 @@ void XC_Functional::set_xc_type(const std::string xc_func_in)
364366

365367
std::string XC_Functional::output_info()
366368
{
369+
ModuleBase::TITLE("XC_Functional", "output_info");
367370
#ifdef USE_LIBXC
368371
if(use_libxc)
369372
{

0 commit comments

Comments
 (0)