#!/bin/bash

DWORK_DIR=/san/home/rdword/corrk_data/therm_test2
KSPEC_DIR=/san/home/rdword/kspectrum/kspec_1

cd $DWORK_DIR

# test for presence of k* in kspec results directory
FILECHECK=$KSPEC_DIR/results/k001
if [ -f $FILECHECK ]; then
    echo -en "There is already k-data in the kspec directory "
    echo -en $KSPEC_DIR
    echo -en ", delete or move it before starting!\n"
    exit 1
fi

#make_composition_gen.exe
cp composition.in $KSPEC_DIR/data/

echo -en "kspectrum working directory is:\n"
echo -en $KSPEC_DIR
echo -en "\nNow you must submit the parallel job (>> llsubmit run_kspec)\n"

cd $KSPEC_DIR

exit 0
