-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathparameters.h
55 lines (40 loc) · 1.24 KB
/
parameters.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
#ifndef PARAMETERS_H
#define PARAMETERS_H
typedef struct {
int nc;
int pm_nc_factor;
double np_alloc_factor;
int ntimestep;
int random_seed;
int nrealization;
int loglevel;
double a_final;
double boxsize;
double omega_m, sigma8, h;
double* zout; int n_zout;
/*
char power_spectrum_file[64];
char fof_filename[64];
char snapshot_filename[64];
char subsample_filename[64];
char cgrid_filename[64];
char init_filename[64];
*/
char* power_spectrum_filename; int strlen_power_spectrum_filename;
char* fof_filename; int strlen_fof_filename;
char* snapshot_filename; int strlen_snapshot_filename;
char* subsample_filename; int strlen_subsample_filename;
char* cgrid_filename; int strlen_cgrid_filename;
char* init_filename; int strlen_init_filename;
// 'strlen' includes the null character. It is the number of chars.
//int subsample_factor;
double fof_linking_factor;
double subsample_factor;
int cgrid_nc;
int write_longid;
} Parameters;
//int read_parameters(const char filename[], Parameters* const param);
int read_parameters(const int argc, char * argv[],
Parameters* const param);
void confirm_parameters(Parameters* const param, const char filename[]);
#endif