2017-02-19 08:05:55 +08:00
|
|
|
#!/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
|
2015-12-27 03:40:22 +08:00
|
|
|
# of the present distribution.
|
|
|
|
|
2016-05-15 23:22:33 +08:00
|
|
|
if [ $QE_USE_MPI == 1 ]; then
|
|
|
|
export PARA_PREFIX="mpirun -np ${TESTCODE_NPROCS}"
|
2017-08-09 05:33:33 +08:00
|
|
|
#
|
|
|
|
# available flags:
|
|
|
|
# -ni n number of images (or -nimage)
|
|
|
|
# (only for NEB; for PHonon, see below)
|
|
|
|
# -nk n number of pools (or -npool, -npools)
|
|
|
|
# -nb n number of band groups (or -nbgrp,-nband_group)
|
|
|
|
# -nt n number of task groups (or -ntg, -ntask_groups)
|
|
|
|
# -nd n number of processors for linear algebra
|
|
|
|
# (or -ndiag, -northo)
|
|
|
|
#
|
|
|
|
export PARA_POSTFIX=" -nk 1 -nd 1 -nb 1 -nt 1 "
|
2016-05-15 23:22:33 +08:00
|
|
|
else
|
|
|
|
unset PARA_PREFIX
|
2017-08-09 05:33:33 +08:00
|
|
|
unset PARA_POSTFIX
|
2016-05-15 23:22:33 +08:00
|
|
|
fi
|
2015-12-27 03:40:22 +08:00
|
|
|
|
2017-08-09 05:33:33 +08:00
|
|
|
echo ' RUNNING ',${PARA_PREFIX} ${ESPRESSO_ROOT}/bin/cp.x ${PARA_POSTFIX} "$@"
|
|
|
|
${PARA_PREFIX} ${ESPRESSO_ROOT}/bin/cp.x ${PARA_POSTFIX} "$@"
|
2015-12-27 03:40:22 +08:00
|
|
|
|
|
|
|
rm -f input_tmp.in
|