tpermeability-c_phi=0.1.sh - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
tpermeability-c_phi=0.1.sh (1131B)
---
1 #!/bin/sh
2 #PBS -N permeability-c_phi=0.1
3 #PBS -l nodes=1:ppn=3
4 #PBS -l walltime=1920:00:00
5 #PBS -q qfermi
6 #PBS -M adc@geo.au.dk
7 #PBS -m abe
8
9 # Grendel CUDA
10 source /com/gcc/4.6.4/load.sh
11 CUDAPATH=/com/cuda/5.5.22
12 export PATH=$HOME/bin:$PATH
13 export PATH=$CUDAPATH/bin:$PATH
14 export LD_LIBRARY_PATH=$CUDAPATH/lib64:$CUDAPATH/lib:$LD_LIBRARY_PATH
15
16 # Manually installed Python modules
17 export PYTHONPATH=$HOME/.local/lib/python:$PYTHONPATH
18 export PYTHONPATH=$HOME/.local/lib64/python:$PYTHONPATH
19
20 # Manually installed Python
21 #export PATH=/home/adc/.local/bin:$PATH
22
23 # Shared Python2.7
24 PYTHON=/com/python/2.7.6
25 export PYTHONPATH=$PYTHON/lib:$PYTHONPATH
26 export PATH=$PYTHON/bin:$PATH
27
28 echo "`whoami`@`hostname`"
29 echo "Start at `date`"
30
31 ORIGDIR=/home/adc/code/sphere
32 #WORKDIR=/scratch/$PBS_JOBID
33 WORKDIR=$ORIGDIR
34
35 #cp -r $ORIGDIR/* $WORKDIR
36
37 cd $WORKDIR
38 nvidia-smi
39 rm CMakeCache.txt
40 cmake . && make
41 cd python
42 python permeability-starter.py 0 0.1 1.0 1.0e3 2.0e3 &
43 python permeability-starter.py 1 0.1 1.0 4.0e3 1.0e4 &
44 python permeability-starter.py 2 0.1 1.0 2.0e4 4.0e4 &
45 wait
46
47 #cp $WORKDIR/output/* $ORIGDIR/output/
48
49 echo "End at `date`"