quantum-espresso/test-suite/run-zg.sh

29 lines
694 B
Bash
Executable File

#!/bin/bash
#
# Copyright (C) 2001 Quantum ESPRESSO
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License. See the file `License' in the root directory
# of the present distribution.
if [[ $QE_USE_MPI == 1 ]]; then
export PARA_PREFIX="mpirun -np ${TESTCODE_NPROCS}"
else
unset PARA_PREFIX
fi
echo $0" "$@
if [[ "$1" == "0" ]]
then
echo "Running ZG ..."
echo "${PARA_PREFIX} ${ESPRESSO_ROOT}/bin/ZG.x -input $1 > $2 2> $3"
${PARA_PREFIX} ${ESPRESSO_ROOT}/bin/ZG.x -input $1 > $2 2> $3
fi
#
if [[ -e CRASH ]]
then
cat $2
fi