Commit 679e84ab authored by Marco Govoni's avatar Marco Govoni
Browse files

Solved problem with Makefile

parent 921f153a
......@@ -4,9 +4,9 @@ testdirs:= test001 test002 test003 test003
default: title all
all:
for d in $(testdirs); do (cd $$d; $(MAKE)); done
for d in $(testdirs); do cd $$d; $(MAKE); [[ $$? != 0 ]] && exit -1; echo 'done'; cd ..; done
clean:
for d in $(testdirs); do (cd $$d; $(MAKE) clean); done
for d in $(testdirs); do cd $$d; $(MAKE) clean; cd ..; done
title :
@echo " "
......
......@@ -2,25 +2,25 @@
# Parallel execution knobs
#
NP = 2 # Number of MPI processes
NI = 1 # NUmber of images
NT = 1 # Number of OPENMP threads
export NP=2 # Number of MPI processes
export NI=1 # NUmber of images
export NT=1 # Number of OPENMP threads
#
# Commands needed by the scripts
#
# Directory where the executables (*.x) are located
BINDIR = ../../../bin
export BINDIR = ../../../bin
# How to run in a parallel executable with MPI
PARA_PREFIX = mpirun -np ${NP} --allow-run-as-root
export PARA_PREFIX = mpirun -np ${NP} --allow-run-as-root
# How to download files
WGET = wget -N -q
export WGET=wget -N -q
###### DO NOT TOUCH BELOW ######
NIMAGE = ${NI}
OMP_NUM_THREADS = ${NT}
export NIMAGE = ${NI}
export OMP_NUM_THREADS = ${NT}
......@@ -7,15 +7,15 @@ default: title all
all: prepare_inputs run
prepare_inputs:
-bash prepare_inputs.sh
bash prepare_inputs.sh
run:
- ${PARA_PREFIX} ${BINDIR}/pw.x -i pw.in > pw.out
- tail -5 pw.out
- ${PARA_PREFIX} ${BINDIR}/wstat.x -nimage ${NIMAGE} -i wstat.in > wstat.out
- tail -5 wstat.out
- ${PARA_PREFIX} ${BINDIR}/wfreq.x -nimage ${NIMAGE} -i wfreq.in > wfreq.out
- tail -5 wfreq.out
${PARA_PREFIX} ${BINDIR}/pw.x -i pw.in > pw.out
tail -5 pw.out
${PARA_PREFIX} ${BINDIR}/wstat.x -nimage ${NIMAGE} -i wstat.in > wstat.out
tail -5 wstat.out
${PARA_PREFIX} ${BINDIR}/wfreq.x -nimage ${NIMAGE} -i wfreq.in > wfreq.out
tail -5 wfreq.out
clean:
- /bin/rm -rf *out *in *upf *save >& /dev/null
......
......@@ -7,15 +7,15 @@ default: title all
all: prepare_inputs run
prepare_inputs:
-bash prepare_inputs.sh
bash prepare_inputs.sh
run:
- ${PARA_PREFIX} ${BINDIR}/pw.x -i pw.in > pw.out
- tail -5 pw.out
- ${PARA_PREFIX} ${BINDIR}/wstat.x -nimage ${NIMAGE} -i wstat.in > wstat.out
- tail -5 wstat.out
- ${PARA_PREFIX} ${BINDIR}/wfreq.x -nimage ${NIMAGE} -i wfreq.in > wfreq.out
- tail -5 wfreq.out
${PARA_PREFIX} ${BINDIR}/pw.x -i pw.in > pw.out
tail -5 pw.out
${PARA_PREFIX} ${BINDIR}/wstat.x -nimage ${NIMAGE} -i wstat.in > wstat.out
tail -5 wstat.out
${PARA_PREFIX} ${BINDIR}/wfreq.x -nimage ${NIMAGE} -i wfreq.in > wfreq.out
tail -5 wfreq.out
clean:
- /bin/rm -rf *out *in *upf *save >& /dev/null
......
......@@ -7,15 +7,15 @@ default: title all
all: prepare_inputs run
prepare_inputs:
-bash prepare_inputs.sh
bash prepare_inputs.sh
run:
- ${PARA_PREFIX} ${BINDIR}/pw.x -i pw.in > pw.out
- tail -5 pw.out
- ${PARA_PREFIX} ${BINDIR}/wstat.x -nimage ${NIMAGE} -i wstat.in > wstat.out
- tail -5 wstat.out
- ${PARA_PREFIX} ${BINDIR}/wfreq.x -nimage ${NIMAGE} -i wfreq.in > wfreq.out
- tail -5 wfreq.out
${PARA_PREFIX} ${BINDIR}/pw.x -i pw.in > pw.out
tail -5 pw.out
${PARA_PREFIX} ${BINDIR}/wstat.x -nimage ${NIMAGE} -i wstat.in > wstat.out
tail -5 wstat.out
${PARA_PREFIX} ${BINDIR}/wfreq.x -nimage ${NIMAGE} -i wfreq.in > wfreq.out
tail -5 wfreq.out
clean:
- /bin/rm -rf *out *in *upf *save >& /dev/null
......
......@@ -21,6 +21,7 @@ nspin = 2
ecutwfc = 25.0
nbnd = 10
assume_isolated ='mp'
tot_magnetization = 0.
/
&electrons
diago_full_acc = .TRUE.
......
......@@ -7,15 +7,15 @@ default: title all
all: prepare_inputs run
prepare_inputs:
-bash prepare_inputs.sh
bash prepare_inputs.sh
run:
- ${PARA_PREFIX} ${BINDIR}/pw.x -i pw.in > pw.out
- tail -5 pw.out
- ${PARA_PREFIX} ${BINDIR}/wstat.x -nimage ${NIMAGE} -i wstat.in > wstat.out
- tail -5 wstat.out
- ${PARA_PREFIX} ${BINDIR}/wfreq.x -nimage ${NIMAGE} -i wfreq.in > wfreq.out
- tail -5 wfreq.out
${PARA_PREFIX} ${BINDIR}/pw.x -i pw.in > pw.out
tail -5 pw.out
${PARA_PREFIX} ${BINDIR}/wstat.x -nimage ${NIMAGE} -i wstat.in > wstat.out
tail -5 wstat.out
${PARA_PREFIX} ${BINDIR}/wfreq.x -nimage ${NIMAGE} -i wfreq.in > wfreq.out
tail -5 wfreq.out
clean:
- /bin/rm -rf *out *in *upf *save >& /dev/null
......
......@@ -29,7 +29,7 @@ ATOMIC_POSITIONS (crystal)
Si 0.0000 0.0000 0.0000
Si 0.2500 0.2500 0.2500
K_POINTS (automatic)
2 2 2 0 0 0
1 1 2 0 0 0
EOF
......
2 total processes failed to start
2 total processes failed to start
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment