forked from kellykochanski/rescal-snow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnow_cone.run
executable file
·48 lines (36 loc) · 1.24 KB
/
snow_cone.run
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
#!/bin/bash
###################################
## Dune simulation
###################################
## KK made this script to run
## Test case 1, with snow_cone.par
## run with ./snow_cone.run
## remove all previously generated files; -f does not ask for user responses
#./clean -f
./clean
## make an archive from the sources
#./dobackup
if [ ! -e genesis ]; then
ln -s ../src/genesis .
fi
if [ ! -e rescal ]; then
ln -s ../src/rescal .
fi
## parameters file (input)
PAR_FILE="snow_cone.par"
echo PAR_FILE=$PAR_FILE
### number of OpenMP threads
export OMP_NUM_THREADS=1
echo OMP_NUM_THREADS=$OMP_NUM_THREADS
## general log files (output)
GENESIS_LOG_FILE="GENESIS.log"
RESCAL_LOG_FILE="RESCAL.log"
## generation of binary cellular space
## with python code
#./genesis.py -f $PAR_FILE > $GENESIS_LOG_FILE
## or with C code
./genesis -f $PAR_FILE -s 2000 > $GENESIS_LOG_FILE
## default execution with light shading, vertical layers of cells and velocity of the flow
#nice ./rescal $PAR_FILE -cv0 -lc -ls 45 -vel >> $RESCAL_LOG_FILE
## generation of png images, CSP files and info logs, then stop after 300 simulated time steps
nice ./rescal $PAR_FILE -cv0 -lc -h 20 -ls 45 -vel -vss -info -dpng 10t0 -nv -dcsp 10t0 -stop 300t0 >> $RESCAL_LOG_FILE