From d29c6596efb744196d5b43221b8ba5645b32524b Mon Sep 17 00:00:00 2001
From: Giovanni Bussi <giovanni.bussi@gmail.com>
Date: Tue, 21 Oct 2014 10:01:35 +0200
Subject: [PATCH] Added warning when using another plumed in regtests

Fixed #114
---
 regtest/scripts/run | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/regtest/scripts/run b/regtest/scripts/run
index 9c489174d..7c75fa95d 100755
--- a/regtest/scripts/run
+++ b/regtest/scripts/run
@@ -45,6 +45,20 @@ echo "++ Processors: $mpiprocs"
 mpi=env
 plumed=plumed
 
+root=$($plumed info --root)
+
+if test -z "$root" ; then
+  echo "ERROR: plumed executable not available"
+  exit 1
+fi
+
+cd ../../../../
+if [[ "${PWD}"/ != "$root" ]] ; then
+echo "WARNING using plumed from $root"
+fi
+cd -
+
+
 if ((mpiprocs>0)); then
 mpi="${PLUMED_MPIRUN:-mpirun} -np $mpiprocs"
 
-- 
GitLab