-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·38 lines (29 loc) · 869 Bytes
/
build.sh
File metadata and controls
executable file
·38 lines (29 loc) · 869 Bytes
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
#!/bin/bash
# build.sh
# Builds
#
# * build/STAN_data_generator
# * build/STAN_amplitude_fitting
#
# from the corresponding *.stan files stored in
# * stan/STAN_data_generator.stan
# * stan/STAN_amplitude_fitting.stan
###### FUNCTIONS
function cd_stan_pwa
{
while [[ $PWD != '/' && ${PWD##*/} != 'stan_pwa' ]]; do cd ..; done
}
###### MAIN
# Define model directory and meson_deca directory
MODEL_DIR=$(pwd)
cd_stan_pwa
MDECA_DIR=$(pwd)
cd $MODEL_DIR
mkdir -p build
mkdir -p output
python $MDECA_DIR/scripts/make_stan.py stan/STAN_data_generator.stan build/STAN_data_generator
#python $MDECA_DIR/scripts/make_stan.py stan/STAN_amplitude_fitting.stan build/STAN_amplitude_fitting
if [ -f stan/STAN_phase_space_gen.stan ];
then
python $MDECA_DIR/scripts/make_stan.py stan/STAN_phase_space_gen.stan build/STAN_phase_space_gen
fi