tebdol

Simulation of ultracold atoms in optical lattices
git clone https://miroslavurbanek.com/git/tebdol.git
Log | Files | Refs | README

commit d3780098760abe02f519b1fcd0e2d4808694f32e
parent afaa4e3295d6a8cdd774b47796c4e52b16ef7b50
Author: Miroslav Urbanek <mu@miroslavurbanek.com>
Date:   Tue,  6 Oct 2015 13:40:51 +0200

Support arguments in run script

Diffstat:
conf.lisp | 2+-
run | 9++++++---
2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/conf.lisp b/conf.lisp @@ -3,7 +3,7 @@ ;; BLAS and LAPACK implementation (load-shared-object "libopenblas.so") -;; (load-shared-object "libmkl_rt.so") ;; mkl +;; (load-shared-object "libmkl_rt.so") ;; MKL ;; MPI implementation diff --git a/run b/run @@ -7,11 +7,14 @@ DSS=1024 # megabytes export LD_LIBRARY_PATH if [ $# -eq 0 ]; then - echo usage: $0 program.lisp + echo usage: $0 program.lisp [arguments] exit 1 fi +PROGRAM="$1" +shift + exec "$SBCL" --dynamic-space-size "$DSS" --noinform --disable-ldb \ --lose-on-corruption --end-runtime-options --no-sysinit \ - --no-userinit --load "$1" --noprint --non-interactive \ - --end-toplevel-options + --no-userinit --load "$PROGRAM" --noprint --non-interactive \ + --end-toplevel-options "$@"