From 0cd2aea43733c71c7f41f3a8b5c711959da00bda Mon Sep 17 00:00:00 2001 From: edoapra Date: Tue, 10 Sep 2019 22:39:39 -0700 Subject: [PATCH] trying to guess NWCHEM_TOP --- QA/runtests.mpi.unix | 5 +++++ QA/runtests.mpi.unix.docker | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/QA/runtests.mpi.unix b/QA/runtests.mpi.unix index f7e74f1a6b..9886858d24 100755 --- a/QA/runtests.mpi.unix +++ b/QA/runtests.mpi.unix @@ -30,6 +30,11 @@ # A subdirectory of the current directory named scratchdir is deleted # and remade for each calculation, and deleted at job end. +if [[ -z "${NWCHEM_TOP}" ]]; then + DIRQA=`dirname "$0"` + MYPWD=`pwd` + NWCHEM_TOP=`echo ${MYPWD}/${DIRQA} | sed -e 's/\/QA.*//' ` +fi # A subdirectory of the current directory name testoutputs is made # if necessary and all outputs are routed there. Existing outputs # are overwritten. The name of the output file is formed by replacing diff --git a/QA/runtests.mpi.unix.docker b/QA/runtests.mpi.unix.docker index 361341af6f..b7ac568da6 100755 --- a/QA/runtests.mpi.unix.docker +++ b/QA/runtests.mpi.unix.docker @@ -35,6 +35,11 @@ # are overwritten. The name of the output file is formed by replacing # the trailing .nw with .out. In this directory is also put the # output of nwparse for the verified and the test outputs. +if [[ -z "${NWCHEM_TOP}" ]]; then + DIRQA=`dirname "$0"` + MYPWD=`pwd` + NWCHEM_TOP=`echo ${MYPWD}/${DIRQA} | sed -e 's/\/QA.*//' ` +fi if ($#argv == 0) then