#!/bin/csh

#define run directory
 set run_dir = /Users/hdietze/mom4p1_pubrel_18dec2009/exp/mom_sis_bling_defaultirondouble

#define forcing
 set forc_dir = /Users/hdietze/southern/forcing/make_iron_forcing/dat 
 set st = 1041   #1001
 set en = 1050


 set ind = `expr $st - 1` 
while ( $ind < $en )   
 set ind = `expr $ind + 1`
 #define forcing files
  set i_forc_nam = $forc_dir/Soluble_Fe_Flux_PI.$ind.nc
 #delete old forcing
  rm -f $run_dir/INPUT/Soluble_Fe_Flux_PI.nc
 #link new forcing
  ln -s $i_forc_nam $run_dir/INPUT/Soluble_Fe_Flux_PI.nc
  cd $run_dir
  ./run.sh
  echo went through $ind
end
