Skip to content

Commit

Permalink
moving user-specific patching to after extramodel download
Browse files Browse the repository at this point in the history
  • Loading branch information
danbarto committed Apr 25, 2024
1 parent da90a52 commit 7582ae1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions bin/MadGraph5_aMCatNLO/gridpack_generation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,6 @@ make_gridpack () {
cd $MGBASEDIRORIG
cat $PRODHOME/patches/*.patch | patch -p1
cp -r $PRODHOME/PLUGIN/CMS_CLUSTER/ PLUGIN/
# Intended for expert use only!
if ls $CARDSDIR/${name}*.patch; then
echo " WARNING: Applying custom user patch. I hope you know what you're doing!"
cat $CARDSDIR/${name}*.patch | patch -p1
fi

# Copy bias module (cp3.irmp.ucl.ac.be/projects/madgraph/wiki/LOEventGenerationBias)
# Expected structure:
Expand Down Expand Up @@ -303,6 +298,14 @@ make_gridpack () {
set +u
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then return 0; else exit 0; fi
fi

cd $MGBASEDIRORIG
# Intended for expert use only!
if ls $CARDSDIR/${name}*.patch; then
echo " WARNING: Applying custom user patch. I hope you know what you're doing!"
cat $CARDSDIR/${name}*.patch | patch -p 1
fi
cd $WORKDIR

echo `pwd`

Expand Down

0 comments on commit 7582ae1

Please sign in to comment.