#!/bin/bash

###################################
## LIFE model
###################################

## remove all previously generated files
#./clean -f
./clean

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

## parameters file (input)
PAR_FILE="life.par"
#PAR_FILE="life2.par"
#PAR_FILE="life3.par"
#PAR_FILE="life4f.par"

## general log files (output)
RESCAL_LOG_FILE="RESCAL.log"

## generation of png images and info logs
nice ./rescal $PAR_FILE -info -dpng 10 -dcsp 1 >> $RESCAL_LOG_FILE
#nice ./rescal $PAR_FILE -info -dpng 1t0 >> $RESCAL_LOG_FILE


