#!/bin/bash

log()
{
    eval $@
    if [[ ${debug} == 1 ]]; then
	echo $@
    fi
}


cat <<EOF
##########################################################
### orbSet

EOF


## $1: year BP
##     (e.g. -125000)
## $2: full path of exp.param

## Changes the values of "eccentricity",
## "obliquity", and "omega" in "exp.param"
## from "robitalForcing.dat" file

#**********************************************************#

log year=$1
log file=$2

here=${PWD}
cd /home/tbahador/storage/models/coupler/code/forcing
log sed -i "s/eccf.*/`echo ${year} | ./test.o | tr -d ' '`/" ${here}/${file}


cat <<EOF

### orbSet
##########################################################

EOF
