-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathglobal.general.h
142 lines (97 loc) · 3.43 KB
/
global.general.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */
#include "SwapEndian.h"
#ifndef WIN32
#include<sys/stat.h>
#endif
///////////////////
//
// pre-global stuff:
//
///////////////////
// whether doing performance testing (also see pnmhd code)
#define DOINGLIAISON 0 // choice of 0 or 1 (should always be 1 for liaison mode and liaison code comilation)
#define NCSA 0
#define PERFTEST 0
#include "mytime.h"
#define USEOPENMP (USINGOPENMP) // choice (set through makehead.inc)
//////////////////
//
// GLOBAL STUFF:
//
//////////////////
#ifndef GLOBAL_H
#define GLOBAL_H
// define FTYPE, SFTYPE, etc.
#include "global.realdef.h"
// all pure nmenomics that don't depend upon anything else but what's inside file
// Doesn't even depend upon N?, N?M, or N?BND, etc.
#include "global.nondepmnemonics.h"
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Default global and user choices for various code options that can change for each run without significant modifications
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include "kazfulleos.global.h" // KAZ EOS (GODMARK: nothing should be overridden by user)
// default values
// Must not make storage items
#include "definit.h"
// user specific values
// Must not make storage items
#include "init.h"
// OpenMP "threadprivate" related macros
#include "global.openmpthreadprivates.h"
// define nmenomics that depend on other mnemonics
// Must not make storage items
#include "global.depmnemonics.h"
// Determines how we store arrays and how we loop
// Depends upon N?,N?BND,SHIFT? created in global.depmnemonics.h
#include "global.storage.h"
// UP TO THIS POINT SHOULD NOT CREATE MEMORY ITEMS that depend upon grid sizes, since depend upon global.storage.h setting the storage sizes
// loops use ORDERSTORAGE set in definit.h or init.h by user
#include "global.loops.h"
#include "global.variousmacros.h"
#include "global.fieldmacros.h"
#include "global.structs.h"
// now that all hashes have been defined, get mpi header
#include "mympi.h"
#include "global.gridsectioning.h"
#include "global.comploops.h"
#include "global.openmploops.h"
// all global external function declarations
#include "global.funcdeclare.h"
#include "global.dump.h" // func declarations
#include "global.bounds.h" // func declarations
// some inits function declarations
#include "global.inits.h"
#include "global.other.h"
// put in the below file things not to be converted by double2longdouble.sh
#include "unconverted_by_double2longdouble.inc"
#endif// endif for #ifndef GLOBAL_H
/////////////////////////////////////////
//
// test declarations
// see checkexterns.sh
// comment below 3 lines when not wanting to test
// uncomment when wanting to test, and then look at make.log
//
#if(0)
#if(!defined(doublereal))
typedef double doublereal;
#endif
#include "utoprim_jon.h" // extra defs
#include "temptempfinalallc.txt"
#endif
//
//
/////////////////////////////////////////
// whether including debug info for NSBH problem
#define DEBUGNSBH 0