Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F74751638
comsol_run_script.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jul 29, 12:22
Size
763 B
Mime Type
text/x-shellscript
Expires
Wed, Jul 31, 12:22 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
19432726
Attached To
rSCEXAMPLES SCITAS examples on how to run on the clusters
comsol_run_script.sh
View Options
#!/bin/bash
#SBATCH --nodes 2
#SBATCH --ntasks 4
#SBATCH --cpus-per-task 8
#SBATCH --ntasks-per-node 2
#SBATCH --time 01:00:00
#SBATCH --mem 10240
#SBATCH --output=slurm.%N.%j.out
#SBATCH --error=slurm.%N.%j.err
module purge
module load comsol
ulimit
-s unlimited
ulimit
-c unlimited
echo
" ****** START OF JOB ******"
echo
$SLURM_NTASKS
echo
$SLURM_NTASKS_PER_NODE
echo
$SLURM_CPUS_PER_TASK
hostfile
=
hostlist-job
${
SLURM_JOB_ID
}
srun hostname | sort >
${
hostfile
}
comsol batch -clustersimple -nn
$SLURM_NTASKS
-nnhost
$SLURM_NTASKS_PER_NODE
-np
$SLURM_CPUS_PER_TASK
-f
${
hostfile
}
-mpifabrics shm:ofa -inputfile test.mph -outputfile testoutput.mph
echo
" ****** END OF JOB ******"
STATUS
=
$status
echo
""
echo
"==> Resulting STATUS = $STATUS"
echo
Event Timeline
Log In to Comment