Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/source_hamilt/module_xc/test/test_xc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions source/source_hamilt/module_xc/test/test_xc1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions source/source_hamilt/module_xc/test/test_xc2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions source/source_hamilt/module_xc/test/test_xc4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions source/source_hamilt/module_xc/xc_functional.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "xc_functional.h"
#include "source_io/module_parameter/parameter.h"
#include "source_base/global_function.h"
#include "source_base/tool_title.h"

#ifdef USE_LIBXC
#include "xc_functional_libxc.h"
Expand All @@ -24,6 +25,7 @@ void XC_Functional::set_hybrid_alpha(const double alpha_in)

void XC_Functional::set_xc_first_loop(const UnitCell& ucell)
{
ModuleBase::TITLE("XC_Functional", "set_xc_first_loop");
/** In the special "two-level" calculation case,
the first scf iteration only calculate the functional without exact
exchange. but in "nscf" calculation, there is no need of "two-level"
Expand Down Expand Up @@ -57,6 +59,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,
Expand Down Expand Up @@ -329,6 +332,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)
{
Expand Down
Loading