Skip to content

Commit

Permalink
[src][comsol] update with options from FAQ and format
Browse files Browse the repository at this point in the history
RT513405
  • Loading branch information
smokhov authored Feb 11, 2024
1 parent 29fc5f2 commit 2120f44
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/comsol.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=8 ## Request 8 cpus
#SBATCH --mem=500G ## Assign 500G memory per node
#SBATCH --mem=100G ## Assign 500G memory per node

# Note:
# By default, SLURM sets the working directory to the directory the job is executed from.
Expand All @@ -23,7 +23,7 @@
echo "$0 : about to run comsol job on Speed"
date # timestamp

# load comsol module
# load comsol module (change to your required version from module avail comsol)
module load comsol/5.6

# Set licence variable
Expand All @@ -33,8 +33,11 @@ setenv LMCOMSOL_LICENSE_FILE <port@licence file location>
# Note: review comsol batch -help for options available
srun comsol batch -inputfile <path/inputfile> \
-outputfile <path/outputfile name> \
-batchlog <path/logfile 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

Expand Down

0 comments on commit 2120f44

Please sign in to comment.