Commit 55c1d309 authored by Ignacio Pisso's avatar Ignacio Pisso
Browse files

export and info mode on laptop

parent 0e0e8d10
#!/bin/bash
target=$1 #/Users/ignacio/todo/doing/flexpart/flex_gen_input/2018-07-03
cp define_default_run.sh $target
cp Makefile $target
cp loop_on_pathnames_laptop.sh $target
cp run_all_sl_laptop $target
#!/bin/bash
#OUTPUT="$(ls -1 pathnames*)"
OUTPUTdefault="$(ls -1 pathnames*)"
OUTPUT=${OUTPUTvar:-$OUTPUTdefault}
OUTPUTpwd="$(pwd)"
FLEXPARTdefault=FLEXPART_8d70e43
#FLEXPART=FLEXPART_8d70e43
FLEXPART=${FLEXPARTvar:-$FLEXPARTdefault}
echo $OUTPUT
for i in ${OUTPUT}
do
#FP_slurm_batch_sl=slurm_batch_$i.sl
FP_slurm_batch_sl=batch_dry_$i.sl
#FP_slurm_batch_sl=toto.sl
echo '#!/bin/bash' > $FP_slurm_batch_sl
echo '#SBATCH -J ' FP_$i >> $FP_slurm_batch_sl
echo '#SBATCH -D ' ${OUTPUTpwd} ' # working directory of script' >> $FP_slurm_batch_sl
echo '#SBATCH --mem=8092 # total memory requirement for the node (in MB)' >> $FP_slurm_batch_sl
echo '#SBATCH --mem-per-cpu=1024 # minimum amount of memory required pr. allocated CPU' >> $FP_slurm_batch_sl
echo '#SBATCH -n 1 # number of tasks, e.g. number of cores' >> $FP_slurm_batch_sl
echo '#SBATCH -N 1 # ensure all cores are on the same host/machine' >> $FP_slurm_batch_sl
echo '#SBATCH --mail-type=ALL # when to send e-mail (valid options are: BEGIN,END,FAIL,REQUEUE,ALL)' >> $FP_slurm_batch_sl
echo '#SBATCH --mail-user=ip@nilu.no # who to send email to' >> $FP_slurm_batch_sl
echo '#SBATCH -o output-%N-%j.out # filename to send standard out to' >> $FP_slurm_batch_sl
echo '#SBATCH -e error-%N-%j.err # filename to send standard error to' >> $FP_slurm_batch_sl
echo ' ' >> $FP_slurm_batch_sl
#echo 'srun -l ' $FLEXPART $i >> $FP_slurm_batch_sl
FLEXPART_run_string="$FLEXPART $i -i"
#echo $FLEXPART -i $i >> $FP_slurm_batch_sl
#echo $FLEXPART $i -i2
echo $FLEXPART_run_string >> $FP_slurm_batch_sl
echo $FLEXPART_run_string
done
#!/bin/bash
#OUTPUT="$(ls -1 *.sl)"
OUTPUTdefault="$(ls -1 *.sl)"
OUTPUT=${OUTPUTvar:-$OUTPUTdefault}
#rm joblist
for i in ${OUTPUT}
do
echo sbatch $i #| tee -a joblist1$group
#source $i | tee -a joblist2$group
source $i | tee stdout$i # -a joblist2$group
echo '##########################################'
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment