-
Notifications
You must be signed in to change notification settings - Fork 12
/
global.h
96 lines (82 loc) · 2.33 KB
/
global.h
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
Developed by Sandeep Sharma and Garnet K.-L. Chan, 2012
Copyright (c) 2012, Garnet K.-L. Chan
This program is integrated in Molpro with the permission of
Sandeep Sharma and Garnet K.-L. Chan
*/
#ifndef SPIN_GLOBAL_HEADER
#define SPIN_GLOBAL_HEADER
#define WANT_MATH
#define WANT_STREAM
// Matrix library header files
#include "timer.h"
//#include <malloc.h>
#include <newmat.h>
#include <newmatap.h>
#include <newmatio.h>
//#include <IntegralMatrix.h>
// STL headers
#include <iostream>
#include <map>
#include <algorithm>
#include <vector>
#include <numeric>
// C headers
//#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "Symmetry.h"
#include "input.h"
#include "pario.h"
#include <ctime>
#include <iostream>
// Global variables
#include <boost/interprocess/managed_shared_memory.hpp>
#include "alloc.h"
using namespace std;
namespace SpinAdapted{
class OneElectronArray;
class TwoElectronArray;
class PairArray;
class CCCCArray;
class CCCDArray;
class StackSpinBlock;
class PerturbTwoElectronArray;
enum OnePerturbType;
enum TwoPerturbType;
extern boost::interprocess::shared_memory_object segment;
extern boost::interprocess::mapped_region region;
extern int CACHEBUFFER;
extern int MAX_THRD;
extern Timer globaltimer;
extern std::vector<OneElectronArray> v_1;
extern std::vector<TwoElectronArray> v_2;
extern std::map<TwoPerturbType,PerturbTwoElectronArray> vpt_2;
extern OneElectronArray vpt_1;
extern std::vector<PairArray> v_cc;
extern std::vector<CCCCArray> v_cccc;
extern std::vector<CCCDArray> v_cccd;
extern std::vector<double> coreEnergy;
extern std::vector< std::vector<StackSpinBlock> > singleSiteBlocks;
extern double BWPTenergy;
extern Input dmrginp;
extern bool SHOW_MORE;
extern bool DEBUG_MEMORY;
extern bool RESTART;
extern bool FULLRESTART;
extern bool BACKWARD;
extern bool reset_iter;
extern bool restartwarm;
extern string sym;
extern bool NonabelianSym;
extern std::vector<int> NPROP;
extern int PROPBITLEN;
extern double NUMERICAL_ZERO;
extern std::vector<StackAllocator<double> > Stackmem;
#ifndef SERIAL
extern boost::mpi::communicator calc;
extern MPI_Comm Calc;
#endif
}
#endif