ABACUS
develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
source
source_base
export.h
Go to the documentation of this file.
1
//==========================================================
2
// AUTHOR : mohan
3
// DATE : 2008-11-07
4
//==========================================================
5
#ifndef EXPORT_H
6
#define EXPORT_H
7
#include <string>
8
#include <iostream>
9
#include <fstream>
10
#include <iomanip>
11
#include <cstdlib>
12
#include "
global_variable.h
"
13
14
#ifdef __MPI
15
#include "mpi.h"
16
#endif
17
//these two function is not used yet!!!!
18
/*namespace ModuleBase
19
{
20
21
template <class T>
22
void ModuleBase::GlobalFunc::AUTO_SET(std::ofstream &ofs,const std::string &name,const T &a)
23
{
24
ofs<<" AUTO_SET "<<name<<" : "<<a << std::endl;
25
return;
26
}
27
28
//===================
29
// OUT
30
//===================
31
32
template <class T>
33
void IF_MATCH(const T &a,const T &b)
34
{
35
if(a!=b)
36
{
37
if(GlobalV::MY_RANK == 0)
38
{
39
std::cout<<"\n Can not match : "<<a<<" "<<b<<std::endl;
40
}
41
#ifdef __MPI
42
MPI_Finalize();
43
#endif
44
exit(0);
45
}
46
//std::cout<<std::setw(12)<<a<<std::endl;
47
return;
48
}
49
50
void IF_MATCH(const std::string &name,const std::string &name2);
51
52
}*/
53
54
#endif
global_variable.h
Generated by
1.9.8