#!/bin/sh

if [ $# -ne 2 ];then
   echo "Usage: $0 [RUN] [EXE-DIR]"
   exit
fi

RUN=$1
DIR=$2

cp ../../exp_data/captex/emit-t1.txt emitimes.txt
for EXP in 1 2 3 4 5 7; do
    cp setup.cfg      SETUP.${EXP}${RUN}
    cp control${EXP}  CONTROL.${EXP}${RUN}
    ${DIR}/hycs_std ${EXP}${RUN}
    rm SETUP.${EXP}${RUN} CONTROL.${EXP}${RUN} VMSDIST.${EXP}${RUN} CONC.CFG
    echo "Completed CAPTEX${EXP}"
done
rm -f emitimes.txt
