Skip to content

Commit

Permalink
Merge pull request #23027 from perrozzi/tmpdir-93X
Browse files Browse the repository at this point in the history
backport of solve mg5 /tmp problem from ExternalLHEProducer
  • Loading branch information
cmsbuild authored Apr 20, 2018
2 parents 1f7318b + ed63b6a commit 40bc1d6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ mkdir lheevent; cd lheevent
#untar the tarball directly from cvmfs
tar -xaf ${path}

# If TMPDIR is unset, set it to the condor scratch area if present
# and fallback to /tmp
export TMPDIR=${TMPDIR:-${_CONDOR_SCRATCH_DIR:-/tmp}}

#generate events
./runcmsgrid.sh $nevt $rnum $ncpu ${@:5}

Expand Down

0 comments on commit 40bc1d6

Please sign in to comment.