#!/bin/bash
#
#PBS -l nodes=1:ppn=8,walltime=1:30:00
#PBS -N beps2011
#PBS -q debug


mkdir -p /dev/shm/meteo
cp /scratch/j/jchen/gmo/input4beps/meteo180ns/dwsr2011int_dt.bin /dev/shm/meteo
cp /scratch/j/jchen/gmo/input4beps/meteo180ns/temp2011int_dt.bin /dev/shm/meteo
cp /scratch/j/jchen/gmo/input4beps/meteo180ns/sphd2011int_dt.bin /dev/shm/meteo
cp /scratch/j/jchen/gmo/input4beps/meteo180ns/wind2011int_dt.bin /dev/shm/meteo
cp /scratch/j/jchen/gmo/input4beps/meteo180ns/prcp2011int_dt.bin /dev/shm/meteo

cd $PBS_O_WORKDIR
(./bepsb run4c42011.txt) &

wait

rm -rf /dev/shm/meteo
