-
Notifications
You must be signed in to change notification settings - Fork 0
/
RUN
executable file
·38 lines (28 loc) · 834 Bytes
/
RUN
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
# This is the "go" script for PNEX2.
# Such a shell script makes repetitive compiling and running
# easy while debugging the code in a unix-based environment.
clear
# increased upper limite of shared memory in UBUNTU
ulimit -s unlimited
#ulimit stacksizae unlimited
# FFTW2 path for library
export LD_LIBRARY_PATH=/home/bob/FFTW2_ifort/lib:$LD_LIBRARY_PATH
# Code Directory and Run Directory
codedir=/work/jose/ekman_bl
rundir=/work/jose/ekman_bl/rundir_unst
# Exectuable Run file name (Should Match with NAME_EXE in Makefile)
NAME_EXE=unstratified
#Output log file name
NAME_OUT=log
cd $codedir
rm grid_def -f
ln -s $rundir/grid_def grid_def
rm input.dat -f
ln -s $rundir/input.dat input.dat
make clean
make
rm $rundir/$NAME_EXE
mv $NAME_EXE $rundir/
make clean
cd $rundir
mpirun -np 16 $rundir/$NAME_EXE > $NAME_OUT &