#!/bin/bash
# delete forst line
sed  '/setup_case()/d' setup_case.py > temp_file
# add new first line plus global declarations
cat  ../global temp_file  modify_case.py  \
calc_earsm.py ../pyCALC-RANS.py  > exec-pyCALC-RANS.py;
/chalmers/groups/lada_8/anaconda3/bin/python  -u  exec-pyCALC-RANS.py > out
