From d68c1cc6082bb3010b0debd2628d7f0cf610c537 Mon Sep 17 00:00:00 2001 From: Wirawan Purwanto Date: Fri, 12 Feb 2021 15:16:43 -0500 Subject: [PATCH] * Wahab: Imported comsol-51, last modified 2021-02-11 to accommodate launching from another SLURM job (e.g. OOD virtual desktop interface). --- wahab/comsol/comsol-51 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 wahab/comsol/comsol-51 diff --git a/wahab/comsol/comsol-51 b/wahab/comsol/comsol-51 new file mode 100755 index 0000000..94ffaaf --- /dev/null +++ b/wahab/comsol/comsol-51 @@ -0,0 +1,17 @@ +#!/bin/bash + +module load slurm comsol + +if [ $? -eq 0 ]; then + echo This session will be terminated in 2 days to prevent comsol license + echo being occupied by forgotten session. +fi + +`/shared/apps/common/slurm/scripts/display_var_helper` \ + salloc -t 2-0 \ + --job-name=COMSOL-5.1 \ + --ntasks=1 \ + --cpus-per-task=4 \ + srun --export=ALL comsol -np 4 -3drend sw -tmpdir /scratch/$USER & + +