Config.sh 4.28 KB
Newer Older
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
#!/bin/bash        	# this line only there to enable syntax highlighting in this file

##################################################
#  Enable/Disable compile-time options as needed #
#  examples/cosmo_box_gravity_only_3d/Config.sh  #
##################################################


#--------------------------------------- Gravity treatment
SELFGRAVITY                              # gravitational intraction between simulation particles/cells  	 
HIERARCHICAL_GRAVITY                     # use hierarchical splitting of the time integration of the gravity
CELL_CENTER_GRAVITY                      # uses geometric centers to calculate gravity of cells, only possible with HIERARCHICAL_GRAVITY
ALLOW_DIRECT_SUMMATION                   # Performed direct summation instead of tree-based gravity if number of active particles < DIRECT_SUMMATION_THRESHOLD (= 3000 unless specified differently here)
DIRECT_SUMMATION_THRESHOLD=500           # Overrides maximum number of active particles for which direct summation is performed instead of tree based calculation

#--------------------------------------- Gravity softening
NSOFTTYPES=2                             # Number of different softening values to which particle types can be mapped.
MULTIPLE_NODE_SOFTENING                  # If a tree node is to be used which is softened, this is done with the softenings of its different mass components
INDIVIDUAL_GRAVITY_SOFTENING=32          # bitmask with particle types where the softenig type should be chosen with that of parttype 1 as a reference type
ADAPTIVE_HYDRO_SOFTENING                 # Adaptive softening of gas cells depending on their size

#--------------------------------------- TreePM Options
PMGRID=256                               # Enables particle mesh; number of cells used for grid in each dimension
RCUT=5.0                                 # This can be used to override the maximum radius in which the short-range tree-force is evaluated (in case the TreePM algorithm is used). The default value is 4.5, given in mesh-cells.

#--------------------------------------- Time integration options
TREE_BASED_TIMESTEPS                     # non-local timestep criterion (take 'signal speed' into account)

#--------------------------------------- Single/Double Precision
DOUBLEPRECISION=1                        # Mode of double precision: not defined: single; 1: full double precision 2: mixed, 3: mixed, fewer single precisions; unless short of memory, use 1.
DOUBLEPRECISION_FFTW                     # FFTW calculation in double precision
OUTPUT_COORDINATES_IN_DOUBLEPRECISION    # will always output coordinates in double precision
NGB_TREE_DOUBLEPRECISION                 # if this is enabled, double precision is used for the neighbor node extension

#--------------------------------------- On the fly FOF groupfinder
FOF                                      # enable FoF output
FOF_PRIMARY_LINK_TYPES=2                 # 2^type for the primary dark matter type
FOF_SECONDARY_LINK_TYPES=1+16+32         # 2^type for the types linked to nearest primaries

#--------------------------------------- Subfind
SUBFIND                                  # enables substructure finder
SAVE_HSML_IN_SNAPSHOT                    # stores hsml, density, and velocity dispersion values in the snapshot files
SUBFIND_CALC_MORE                        # calculates also the velocity dispersion in the local density estimate (this is automatically enabled by several other options, e.g. SAVE_HSML_IN_SNAPSHOT)
SUBFIND_EXTENDED_PROPERTIES              # adds calculation of further quantities related to angular momentum in different components

#-------------------------------------------- Things for special behaviour
PROCESS_TIMES_OF_OUTPUTLIST              # goes through times of output list prior to starting the simulaiton to ensure that outputs are written as close to the desired time as possible (as opposed to at next possible time if this flag is not active)

#--------------------------------------- Output/Input options
REDUCE_FLUSH                             # only flush output to log-files in predefined intervals
HAVE_HDF5                                # needed when HDF5 I/O support is desired (recommended)

#--------------------------------------- Testing and Debugging options
DEBUG                                    # enables core-dumps