-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmesascript.sh
88 lines (56 loc) · 1.72 KB
/
mesascript.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/sh
#sample slurm batch script for tsoodzil
#
# Submit using: sbatch <script-file>
# Status check: squeue
#
#*******************************************************************************
# SLURM options
# Job name
#SBATCH -J mesa
# Run directory
#SBATCH -D /storage2/sl84/
# Run on partition
#SBATCH -p normal
# Resource limits
# ntasks max number of tasks that will be used
# ntasks-per-socket max number of tasks per socket to use
#
# Specify one or the other of these.
#
# mem memory per node in MB
# mem-per-cpu memory per core in MB
#
# time: maximum wall clock time (hh:mm:ss)
#SBATCH --ntasks=32
#SBATCH --time=72:00:00
# Output
# #SBATCH -o /home/ricker/test/flash/FLASH2_stable/flashtest.%j.out
# #SBATCH -e /home/ricker/test/flash/FLASH2_stable/flashtest.%j.err
# Mail (optional)
# send mail when the job ends to addresses specified by --mail-user
#SBATCH --mail-type=end
#SBATCH [email protected]
# Export environment variables to job
#SBATCH --export=ALL
#*******************************************************************************
# Script commands
export EXEC_FILE=lmxb.tar.gz
#setenv PARM_FILE 20Msun_Z0.02.tar.gz
echo Setting up environment...
newgrp mesa
module load mesa/mesa-r15140
module load python/anaconda3
#printenv LD_LIBRARY_PATH
cd /storage2/$USER/
export WORKDIR=$SLURM_JOB_NAME/$SLURM_JOB_NAME.$SLURM_JOB_ID
mkdir -p $WORKDIR
cd $WORKDIR
tar xvfz $HOME/exec/$EXEC_FILE
#tar xvfz $HOME/parm/$PARM_FILE
export OMP_NUM_THREADS=$SLURM_TASKS_PER_NODE
echo Running with $np threads at `date`
./rn
echo job complete at `date`
#*******************************************************************************
# Done.