Menu

PBS queue and scrpath directory in elk.in

Elk Users
Roger
2017-03-28
2017-03-28
  • Roger

    Roger - 2017-03-28

    Dear All,
    Is there any way to assign variable scrpath to bash environment variable $TMPDIR? When I run a calculation using PBS qsub the temporary variable $TMPDIR with a random name is created on the scratch. My home directory has a limited size so I would like to place all large files such as EVALFV.OUT and EVALSV.OUT in this temporary directory.
    Thank you
    Roger

     
  • mfechner

    mfechner - 2017-03-28

    Dear Roger,

    could you just use bash script to generate elk.in ? Something like you submit this
    -->

    !# slurm .... %everything of the jobscript

    temppath=echo $TMPDIR

    cat >> elk.in << EOF

    scrpath
    $temppath

    EOF

    mpirun -n XXX elk

    Please note that this shows only the essential stuff and further more it assumes that a proper elk.in exists with all input requiered for the computation.

    best regards
    Michael

     
  • Lars Nordström

    Lars Nordström - 2017-03-28

    I have a similar setup of slurm and for me the following setup works:

    In elk.in
    scrpath
    './scratch/'

    and in the script-file
    ln -sf $TMPDIR scratch

    Good luck!
    /Lars

     
  • Roger

    Roger - 2017-03-29

    Dear mfechner & Lars,

    Many thanks for the prompt reply. Right now, it works :)

    Best
    Roger

     

    Last edit: Roger 2017-03-29

Log in to post a comment.