ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
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
21template <class T>
22void 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
32template <class T>
33void 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
50void IF_MATCH(const std::string &name,const std::string &name2);
51
52}*/
53
54#endif