thalfshear-darcy-velfac0.5.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
       ---
       thalfshear-darcy-velfac0.5.sh (1244B)
       ---
            1 #!/bin/sh
            2 #PBS -N hs-d-v0.5
            3 #PBS -l nodes=1:ppn=3
            4 #PBS -l walltime=48: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 shear-starter.py <DEVICE> <FLUID> <C_PHI> <C_GRAD_P> <SIGMA_0>
           43 python halfshear-darcy-starter.py 0 1 1.0 3.5e-13 20000.0 1.797e-6 0.5 &
           44 python halfshear-darcy-starter.py 1 1 1.0 3.5e-14 20000.0 1.797e-6 0.5 &
           45 python halfshear-darcy-starter.py 2 1 1.0 3.5e-15 20000.0 1.797e-6 0.5 &
           46 wait
           47 
           48 #cp $WORKDIR/output/* $ORIGDIR/output/
           49 
           50 echo "End at `date`"