#!/bin/bash
# ********************
#
# Script to execute the subsidiary script cycle.sh and pass it arguments in a user-defined range.
# We only vary the parameters of the model, not the limits or gnuplot script parameters.
#
#
# Preconditions to this script
# *****************************************************
#
#  All paths and filenames are hardwired.
#
# Version History
# ***************
#
#  15/08/23  1.0  Author: Julian Shillcock.Adapted to run the simple limit cycle model from lecture 7.
#
#
# Arguments
# *********
#
# No arguments
#
# ******************************************************************************************
# The main body of the script.



n=10000

aList="0.1 0.5 0.9 0.95 1.05 1.1 1.5 2.0 4.0"
bList="2.0"

xlow=-4
xhigh=4

for a in $aList; do
for b in  $bList; do

            echo "Parameters " $n $a $b $xlow $xhigh
            
            cycle.sh  $n $a $b $a $b $xlow $xhigh
            sleep 0.5
done
done
