#!/bin/bash

# Export paths here if necessary or recommended.
export LD_LIBRARY_PATH="/share/compilers/gcc/4.8.5/openmpi/1.8.4/lib":$LD_LIBRARY_PATH

# Load environment if this script is run directly.
if test "$CS_ENVIRONMENT_SET" != "true" ; then
  module purge
  module load gcc/4.8.5/openmpi/1.8.4
fi

cd /home/firozi/LES-2/CASE1/RESU/20160818-0852

# Run solver.
mpiexec --machinefile /home/firozi/LES-2/CASE1/RESU/20160818-0852/hostsfile -n 16 --npernode 8 ./cs_solver --param LES --mpi $@
export CS_RET=$?

exit $CS_RET
