#!/bin/sh

export OMP_NUM_THREADS=1

for f in `ls *.R`; do
  mpirun -np $1 Rscript $f
done

