-
Notifications
You must be signed in to change notification settings - Fork 2
/
defs.h
37 lines (27 loc) · 1.21 KB
/
defs.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
#ifndef DEFS_H
#define DEFS_H
#define NTMAX 10000
#define SOMERVILLE_FLAG 1
#define MAI_FLAG 2
#define MINSLIP 1.0e-02
#define DHYPO_FRAC 0.75 /* hypo at 0.75 down-dip width */
#define SHYPO_STEP 20.0 /* hypo spacing at 20 km along strike */
#define SHYPO_MIN_OFF 1.0 /* hypos start at 1.0 km along strike */
#define SLIPS_TO_HYPOS 2 /* no. slip models = 2 times no. of hypos */
#define DEFAULT_VR_TO_VS_FRAC 0.8 /* vrup = 0.8 times local Vs */
#define DEFAULT_SHAL_VRUP_FRAC 0.8 /* shallow_vrup = 0.8 times back_vrup */
#define DEFAULT_TSFAC -0.5 /* tinit is shifted -0.5 at max_slip */
#define RDONLY_FLAGS O_RDONLY
#define RDWR_FLAGS O_RDWR
#define CROPTR_FLAGS O_CREAT | O_TRUNC | O_RDWR
#define MAX_PARAMS 100 /* maximum number of parameters to pass */
#define MAX_PARAM_LENGTH 64 /* maximum length of an individual parameter */
#if _FILE_OFFSET_BITS == 64
#undef RDONLY_FLAGS
#undef RDWR_FLAGS
#undef CROPTR_FLAGS
#define RDONLY_FLAGS O_RDONLY | O_LARGEFILE
#define RDWR_FLAGS O_RDWR | O_LARGEFILE
#define CROPTR_FLAGS O_CREAT | O_TRUNC | O_RDWR | O_LARGEFILE
#endif
#endif