-
Notifications
You must be signed in to change notification settings - Fork 15
/
comsol.sh
executable file
·43 lines (33 loc) · 1.21 KB
/
comsol.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/encs/bin/tcsh
##
## SLURM options
##
#SBATCH --job-name=comsol_job ## Give the job a name
#SBATCH --mail-type=ALL ## Receive all email type notifications
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=8 ## Request 8 cpus
#SBATCH --mem=100G ## Assign 500G memory per node
# Note:
# By default, SLURM sets the working directory to the directory the job is executed from.
# To set a different working directory use the --chdir=<directory name> SBATCH option.
##
## Job to run
##
echo "$0 : about to run comsol job on Speed"
date # timestamp
# load comsol module (change to your required version from module avail comsol)
module load comsol/5.6
# Set licence variable
setenv LMCOMSOL_LICENSE_FILE <port@licence file location>
# Execute the comsole batch command
# Note: review comsol batch -help for options available
srun comsol batch -inputfile <path/inputfile> \
-outputfile <path/outputfile name> \
-batchlog <path/logfile name> \
-recoverydir /speed-scratch/$USER/comsol/recovery \
-tmpdir /speed-scratch/$USER/comsol/tmp \
-configuration/speed-scratch/$USER/comsol/config
echo "$0 : Done!"
date
# EOF