#!/bin/bash

CMD=$1

# Now expand MCR cache env. variable in order to create subdirectories inside the
# the base cache path for each MPI rank and to avoid I/O conflicts among the processes.
export MCR_CACHE_ROOT=${MCR_CACHE_ROOT}/${PMI_RANK}
# Run application.
$CMD