freebsd-ports/science/quantum-espresso/files/patch-environment__variables
Yuri Victorovich f5bf536f20 science/quantum-espresso: Add pseudo potential files because they are used in all calculations
Port changes:
* Download and install all pseudo potential files that are mentioned in any examples
* Remove ALL_TARGET - it had a default value
* Merge post-patch target into post-extract target
* Add the run-examples target
* Add DIST_SUBDIR because there are many distfiles
2018-07-19 10:18:07 +00:00

38 lines
1.2 KiB
Text

--- environment_variables.orig 2018-07-04 09:14:20 UTC
+++ environment_variables
@@ -17,11 +17,14 @@ export LC_ALL
# The following should be good for most cases
-PREFIX=`cd ../../.. ; pwd`
+if [ -z "$PREFIX" ]; then
+ echo "Please set the PREFIX environment variable"
+ exit 1
+fi
BIN_DIR=$PREFIX/bin
-PSEUDO_DIR=$PREFIX/pseudo
+PSEUDO_DIR=$PREFIX/share/quantum-espresso/pseudo
# Beware: everything in $TMP_DIR will be destroyed !
-TMP_DIR=$PREFIX/tempdir
+TMP_DIR=/tmp
# There should be no need to change anything below this line
@@ -57,7 +60,7 @@ fi
# parallelism, do not run on too many processors
PARA_PREFIX=" "
-PARA_PREFIX="mpirun -np 4"
+#PARA_PREFIX="mpirun -np 4"
#
# available flags:
# -ni n number of images (or -nimage)
@@ -68,7 +71,7 @@ PARA_PREFIX="mpirun -np 4"
# -nd n number of processors for linear algebra
# (or -ndiag, -northo)
#
-PARA_POSTFIX=" -nk 1 -nd 1 -nb 1 -nt 1 "
+#PARA_POSTFIX=" -nk 1 -nd 1 -nb 1 -nt 1 "
#
# The following variables are used for image parallelization of PHonon
# (see example in PHonon/examples/Image_example)