diff --git a/conf/cheaha.config b/conf/cheaha.config index 578259c..58963b5 100644 --- a/conf/cheaha.config +++ b/conf/cheaha.config @@ -1,3 +1,6 @@ +// Define the Scratch directory +def scratch_dir = System.getenv("USER_SCRATCH") ?: "/tmp" + params { config_profile_name = 'cheaha' config_profile_description = 'University of Alabama at Birmingham Cheaha HPC' @@ -6,14 +9,14 @@ params { } env { - TMPDIR="$USER_SCRATCH" - SINGULARITY_TMPDIR="$USER_SCRATCH" + TMPDIR="$USER" + SINGULARITY_TMPDIR="$scratch_dir" } singularity { enabled = true autoMounts = true - runOptions = "--contain --workdir $USER_SCRATCH" + runOptions = "--contain --workdir $scratch_dir" } process {