Skip to content

Commit

Permalink
Recognize openmm source tree in the parent directory as well
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomofiorin committed Oct 24, 2024
1 parent c1d96d6 commit 96fa3f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions update-colvars-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,12 @@ copy_lepton() {

if [ -d ${source}/openmm-source ] ; then
OPENMM_SOURCE=${source}/openmm-source
elif [ -d ${source}/../openmm-source ] ; then
OPENMM_SOURCE=${source}/../openmm-source
fi

if [ -z "${OPENMM_SOURCE}" ] ; then
# Create a temp folder and download OpenMM into it
OPENMM_SOURCE=$(mktemp -d /tmp/openmm-source-XXXXXX)
fi

Expand Down

0 comments on commit 96fa3f6

Please sign in to comment.