forked from sanshar/Dice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.h
77 lines (62 loc) · 2.41 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
/*
Developed by Sandeep Sharma with contributions from James E. T. Smith and Adam
A. Holmes, 2017 Copyright (c) 2017, Sandeep Sharma
This file is part of DICE.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef Global_HEADER_H
#define Global_HEADER_H
//#include <ctime>
//#include <sys/time.h>
#include <boost/interprocess/managed_shared_memory.hpp>
#include <string>
#ifndef SERIAL
#include "mpi.h"
#endif
typedef unsigned short ushort;
const int DetLen = 6;
extern double startofCalc;
double getTime();
#ifdef Complex
#define MatrixXx MatrixXcd
#define CItype std::complex<double>
#else
#define MatrixXx MatrixXd
#define CItype double
#endif
extern boost::interprocess::shared_memory_object int2Segment;
extern boost::interprocess::mapped_region regionInt2;
extern std::string shciint2;
extern boost::interprocess::shared_memory_object int2SHMSegment;
extern boost::interprocess::mapped_region regionInt2SHM;
extern std::string shciint2shm;
extern boost::interprocess::shared_memory_object hHelpersSegment;
extern boost::interprocess::mapped_region regionHelpers;
extern std::string shciHelper;
extern boost::interprocess::shared_memory_object DetsCISegment;
extern boost::interprocess::mapped_region regionDetsCI;
extern std::string shciDetsCI;
extern boost::interprocess::shared_memory_object SortedDetsSegment;
extern boost::interprocess::mapped_region regionSortedDets;
extern std::string shciSortedDets;
extern boost::interprocess::shared_memory_object DavidsonSegment;
extern boost::interprocess::mapped_region regionDavidson;
extern std::string shciDavidson;
extern boost::interprocess::shared_memory_object cMaxSegment;
extern boost::interprocess::mapped_region regioncMax;
extern std::string shcicMax;
#ifndef SERIAL
extern MPI_Comm shmcomm, localcomm;
#endif
extern int commrank, shmrank, localrank;
extern int commsize, shmsize, localsize;
#endif