forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexport.h
More file actions
54 lines (47 loc) · 1004 Bytes
/
export.h
File metadata and controls
54 lines (47 loc) · 1004 Bytes
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
//==========================================================
// AUTHOR : mohan
// DATE : 2008-11-07
//==========================================================
#ifndef EXPORT_H
#define EXPORT_H
#include <string>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <cstdlib>
#include "global_variable.h"
#ifdef __MPI
#include "mpi.h"
#endif
//these two function is not used yet!!!!
/*namespace ModuleBase
{
template <class T>
void ModuleBase::GlobalFunc::AUTO_SET(std::ofstream &ofs,const std::string &name,const T &a)
{
ofs<<" AUTO_SET "<<name<<" : "<<a << std::endl;
return;
}
//===================
// OUT
//===================
template <class T>
void IF_MATCH(const T &a,const T &b)
{
if(a!=b)
{
if(GlobalV::MY_RANK == 0)
{
std::cout<<"\n Can not match : "<<a<<" "<<b<<std::endl;
}
#ifdef __MPI
MPI_Finalize();
#endif
exit(0);
}
//std::cout<<std::setw(12)<<a<<std::endl;
return;
}
void IF_MATCH(const std::string &name,const std::string &name2);
}*/
#endif