Skip to content
Snippets Groups Projects
douar.run 995 B
Newer Older
  • Learn to ignore specific revisions
  • Douglas Guptill's avatar
    Douglas Guptill committed
    #!/bin/sh
    #
    # run douar, on the p690
    #
    # Author: Douglas Guptill
    # 2009-05-25: new
    
    
    if test $# -lt 1 ; then
      echo "Usage: $0 <number-of-processors>"
      exit
    fi
    
    PROCS=$1
    echo "Will use ${PROCS} processes."
    
    make_dir() {
      if ! test -d $1;  then mkdir $1; fi
    }
    
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # For poe, set NLSPATH.
    if test  "x${NLSPATH}" = x ; then
      export NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
      echo "setting NLSPATH=${NLSPATH}"
    fi
    # The PGPLOT routines need this.
    export PGPLOT_DIR=/home/beaumnt1/software/pgplot-5.2.2
    # WSMP needs to know where its license file is.
    export WSMPLICPATH=/home/beaumnt1/software/wsmp/wsmp.lic
    
    # douar needs some directories..
    make_dir DEBUG
    make_dir DEBUG/mpilogs
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    make_dir OUT
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # define the binary of douar
    BIN=/home/beaumnt1/software/douar/douar
    # How many processes to run?
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # Here is the run command
    COM="poe ${BIN} -procs ${PROCS} -hostfile ${HOME}/host.list -euilib ip"    
    # start douar!
    nohup ${COM} &
    
    echo "douar has been started.  Look in nohup.out ."
    
    Douglas Guptill's avatar
    Douglas Guptill committed