#!/bin/bash

# Export paths here if necessary or recommended.
export LD_LIBRARY_PATH="/usr/local/intel/2018.2.046/impi/2018.2.199/intel64/lib/release_mt":$LD_LIBRARY_PATH
# Load environment if this script is run directly.
if test "$CS_ENVIRONMENT_SET" != "true" ; then
  module purge
  module load intel/18.2
  module load intelmpi/18.2
  module load metis/5.1.0
  module load parmetis/4.0.3
  module load python/2.7.14
  module load hdf5/1.8.21-intelmpi
fi

export LD_LIBRARY_PATH="/users/e201502/aria/INSTALLATION_CODE_SATURNE/opt/med-3.2.1/lib":$LD_LIBRARY_PATH

mpiexec.hydra -n 18 -wdir FLOW ./cs_solver --mpi --app-name FLOW : -n 18 -wdir SCALAR ./cs_solver --mpi --app-name SCALAR
export CS_RET=$?

exit $CS_RET
