#!/bin/bash
cd MEMBER_$MEMBER
echo LMDZ MEMBER_$MEMBER > out_lmdz.x.out.${SLURM_PROCID}
export KMP_STACKSIZE=3g
export KMP_LIBRARY=turnaround
export MKL_SERIAL=YES
OMP_NUM_THREADS=8
if [[ -z $DDT ]]
then
  ../lmdz.x >> out_lmdz.x.out.${SLURM_PROCID} 2>out_lmdz.x.err.${SLURM_PROCID}
else
 ddt-client  ../lmdz.x >> out_lmdz.x.out.${SLURM_PROCID} 2>out_lmdz.x.err.${SLURM_PROCID}
fi
