-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathouttype.h
142 lines (136 loc) · 3.25 KB
/
outtype.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
#ifndef OUTTYPE_HINCLUDED
#define OUTTYPE_HINCLUDED
#include "pkd.h"
#define NUMOUTPUTS 128
enum DataTypeCode {
INT8 = 1,
UINT8,
INT16,
UINT16,
INT32,
UINT32,
INT64,
UINT64,
FLOAT32,
FLOAT64
};
enum outtype_arraytype {
OUT_NULL,
OUT_BIG_FILE,
OUT_COLOR_ARRAY,
OUT_DENSITY_ARRAY,
OUT_DENSITYU_ARRAY,
OUT_DENSITYRFC_ARRAY,
OUT_PRES_ARRAY,
OUT_POT_ARRAY,
OUT_AMAG_ARRAY,
OUT_IMASS_ARRAY,
OUT_MASS_ARRAY,
OUT_RUNG_ARRAY,
OUT_SPHH_ARRAY,
OUT_U_ARRAY,
OUT_TWOPHASE_ARRAY,
OUT_UNONCOOL_ARRAY,
OUT_TEMPINC_ARRAY,
OUT_TEMP_ARRAY,
OUT_COOL_EDOT_ARRAY,
OUT_COOL_COOLING_ARRAY,
OUT_COOL_HEATING_ARRAY,
OUT_GASDENSITY_ARRAY,
OUT_HSMDIVV_ARRAY,
OUT_UDOT_ARRAY,
OUT_COOL_ARRAY0,
OUT_COOL_ARRAY1,
OUT_COOL_ARRAY2,
OUT_COOL_ARRAY3,
OUT_COOL_ARRAY4,
OUT_COOL_ARRAY5,
OUT_COOL_ARRAY6,
OUT_COOL_AR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UT_RATIOSOUNDDYN_ARRAY,
OUT_L_JEANS_ARRAY,
OUT_ISMALL_JEANS_ARRAY,
OUT_SURFACEAREA_ARRAY,
OUT_DIVV_T_ARRAY,
OUT_DIVV_CORRECTOR_ARRAY,
OUT_IACTIVE_ARRAY,
OUT_1D3DSPLIT, /* NOTICE!!
* Everything above here is 1D
* Everything below here is 3D
*/
OUT_POS_VECTOR,
OUT_VEL_VECTOR,
OUT_ACCEL_VECTOR,
OUT_ACCELG_VECTOR,
OUT_ACCELRFC_VECTOR,
OUT_CURLV_VECTOR,
OUT_NORMAL_VECTOR,
OUT_VPRED_VECTOR,
OUT_GRADRHO_VECTOR,
OUT_ACCELPRES_VECTOR,
OUT_ANGMOM_VECTOR,
OUT_END_OF_LIST
};
/*void pkdOutArray(PKD pkd,char *pszFileName,int nStart, int iArrType, int iBinaryOutput);*/
void VecFilename(char *achFile, int iType);
FLOAT VecType(PKD pkd, PARTICLE *p,int iDim,int iType);
void pkdOutVector(PKD pkd,char *pszFileName,int nStart, int iDim,int iVecType,int iBinaryOutput, int N, int bStandard);
void pkdInVector(PKD pkd,char *pszFileName,int nStart, int nLocal, int iDim,int iVecType,int iBinaryInput, int N, int bStandard);
void pkdGenericSeek(PKD pkd,FILE *fp,long nStart,int iHeader, int iElement);
void pkdOutNChilada(PKD pkd,char *pszFileName,int nGasStart, int nDarkStart, int nStarStart, int iVecType, int *pnOut, float minValue[3][3], float maxValue[3][3], double duTFac, double dvFac);
#endif