Skip to content

Commit 07c39e8

Browse files
committed
convert tool_title.cpp
1 parent 5dfb422 commit 07c39e8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/module_base/tool_title.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ namespace ModuleBase
1717

1818
void TITLE(const std::string &class_name,const std::string &function_name,const bool disable)
1919
{
20-
// if (disable)
21-
// {
22-
// return;//no output
23-
// }
20+
if (disable)
21+
{
22+
return; // no output
23+
}
2424
#ifdef __NORMAL
2525
std::cout<<" ==> "<<class_name<<"::"<<function_name<<"\t"
2626
<<ModuleBase::GlobalFunc::MemAvailable()/1024.0/1024<<" GB\t"
@@ -37,10 +37,10 @@ void TITLE(const std::string &class_name,const std::string &function_name,const
3737

3838
void TITLE(std::ofstream &ofs,const std::string &class_name,const std::string &function_name,const bool disable)
3939
{
40-
// if (disable)
41-
// {
42-
// return;//no output
43-
// }
40+
if (disable)
41+
{
42+
return; // no output
43+
}
4444
#ifdef __NORMAL
4545
std::cout<<"\n\n ==> "<<class_name<<"::"<<function_name<<"\t"
4646
<<ModuleBase::GlobalFunc::MemAvailable()/1024.0/1024<<" GB\t"

0 commit comments

Comments
 (0)