-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrun_lyacolore.sh
executable file
·50 lines (38 loc) · 1.57 KB
/
run_lyacolore.sh
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
#!/bin/bash -l
################################################################################
## This is a script to generate one full realisation of LyaCoLoRe's output,
## using one multi-core node.
################################################################################
## USER DEFINED PARAMS.
# Set the config file that we want to point to. Look at the config files to get
# some more detail on the arguments chosen, and for instructions on how to find
# out more about the options.
CONFIG_FILE="./input_files/config_files/config_v9.0.ini"
# Set where your CoLoRe output is located, and where you would like your
# LyaCoLoRe output to be located.
COLORE_OUT_LOC=...
LYACOLORE_OUT_LOC=...
# Specify number of cores to use.
NCORES=64
## END OF USER DEFINED PARAMS.
################################################################################
echo "Starting LyaCoLoRe..."
echo " "
# Make master file and new file structure
echo " "
echo " 1. Make master file"
echo " "
command="${LYACOLORE_PATH}/scripts/make_master.py -c ${CONFIG_FILE} -i ${COLORE_OUT_LOC} -o ${LYACOLORE_OUT_LOC} --nproc ${NCORES}"
$command
# Make transmission files and other associated skewer files.
echo " "
echo " 2. Make transmission files"
echo " "
command="${LYACOLORE_PATH}/scripts/make_transmission.py -c ${CONFIG_FILE} -i ${COLORE_OUT_LOC} -o ${LYACOLORE_OUT_LOC} --nproc ${NCORES}"
$command
echo " "
echo "Done!"
echo " "
# Copy the config file to the output location for clarify.
cp $CONFIG_FILE $LYACOLORE_OUT_LOC
################################################################################