#!/bin/bash

## remove all previously generated files
#./clean

if [ ! -e genesis ]; then
  ln -s ../genesis/genesis .
fi
if [ ! -e rescal ]; then
  ln -s ../rescal/rescal .
fi

PAR_FILE="dun.par"
#PAR_FILE="dun_rot.par"

## generation of binary cellular space 
## with python code
#./genesis.py -f $PAR_FILE > log.txt
## or with C code
./genesis -f $PAR_FILE -g 2000 > log.txt

## default command
nice ./rescal $PAR_FILE -ls 135 -vel >> log.txt 

## display vertical layers of cells and shear stress
#nice ./rescal $PAR_FILE -cv0 -lc -ls 135 -vel -vss >> log.txt 

## generation of bin/txt data files and PNG images, then stop after 30 minutes
#nice ./rescal $PAR_FILE -cv0 -lc -ls 135 -vel -vss -info -dpng 10 -dbin 5 -stop 30 >> log.txt

#./plot_cgv

