forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtool_title.cpp
More file actions
56 lines (50 loc) · 1.36 KB
/
tool_title.cpp
File metadata and controls
56 lines (50 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include "tool_title.h"
#ifdef __NORMAL
#else
#include "global_variable.h"
#endif
namespace ModuleBase
{
//==========================================================
// GLOBAL FUNCTION :
// NAME : TITLE( title for each function )
//==========================================================
void TITLE(const std::string &class_function_name)
{
return;//no output
#ifdef __NORMAL
std::cout<<" ==> "<<class_function_name<<std::endl;
#else
if(GlobalV::ofs_running) // mohan add 2009-08-25 in case the function called before allocate GlobalV::ofs_running
{
GlobalV::ofs_running<<" ==> "<<class_function_name<<std::endl;
}
#endif
}
void TITLE(const std::string &class_name,const std::string &function_name)
{
return;//no output
#ifdef __NORMAL
std::cout<<" ==> "<<class_name<<"::"<<function_name<<std::endl;
#else
if(GlobalV::ofs_running) // mohan add 2009-08-25 in case the function called before allocate GlobalV::ofs_running
{
GlobalV::ofs_running<<" ==> "<<class_name<<"::"<<function_name<<std::endl;
}
#endif
return;
}
void TITLE(std::ofstream &ofs,const std::string &class_name,const std::string &function_name)
{
return;// no output
#ifdef __NORMAL
std::cout<<"\n\n ==> "<<class_name<<"::"<<function_name<<std::endl;
#else
if(GlobalV::ofs_running)
{
ofs<<" ==> "<<class_name<<"::"<<function_name<<std::endl;
}
#endif
return;
}
}