Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
west-public
West
Commits
679e84ab
Commit
679e84ab
authored
Aug 02, 2018
by
Marco Govoni
Browse files
Solved problem with Makefile
parent
921f153a
Changes
10
Hide whitespace changes
Inline
Side-by-side
test-suite/Makefile
View file @
679e84ab
...
@@ -4,9 +4,9 @@ testdirs:= test001 test002 test003 test003
...
@@ -4,9 +4,9 @@ testdirs:= test001 test002 test003 test003
default
:
title all
default
:
title all
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
:
clean
:
for
d
in
$(testdirs)
;
do
(
cd
$$
d
;
$(MAKE)
clean
)
;
done
for
d
in
$(testdirs)
;
do
cd
$$
d
;
$(MAKE)
clean
;
cd
..
;
done
title
:
title
:
@
echo
" "
@
echo
" "
...
...
test-suite/maketest.inc
View file @
679e84ab
...
@@ -2,25 +2,25 @@
...
@@ -2,25 +2,25 @@
# Parallel execution knobs
# Parallel execution knobs
#
#
NP
=
2
# Number of MPI processes
export
NP
=
2
# Number of MPI processes
NI
=
1
# NUmber of images
export
NI
=
1
# NUmber of images
NT
=
1
# Number of OPENMP threads
export
NT
=
1
# Number of OPENMP threads
#
#
# Commands needed by the scripts
# Commands needed by the scripts
#
#
# Directory where the executables (*.x) are located
# Directory where the executables (*.x) are located
BINDIR
=
..
/../../
bin
export
BINDIR
=
..
/../../
bin
# How to run in a parallel executable with MPI
# 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
# How to download files
WGET
=
wget
-
N
-
q
export
WGET
=
wget
-
N
-
q
###### DO NOT TOUCH BELOW ######
###### DO NOT TOUCH BELOW ######
NIMAGE
=
$
{
NI
}
export
NIMAGE
=
$
{
NI
}
OMP_NUM_THREADS
=
$
{
NT
}
export
OMP_NUM_THREADS
=
$
{
NT
}
test-suite/test001/Makefile
View file @
679e84ab
...
@@ -7,15 +7,15 @@ default: title all
...
@@ -7,15 +7,15 @@ default: title all
all
:
prepare_inputs run
all
:
prepare_inputs run
prepare_inputs
:
prepare_inputs
:
-
bash prepare_inputs.sh
bash prepare_inputs.sh
run
:
run
:
-
${PARA_PREFIX}
${BINDIR}
/pw.x
-i
pw.in
>
pw.out
${PARA_PREFIX}
${BINDIR}
/pw.x
-i
pw.in
>
pw.out
-
tail
-5
pw.out
tail
-5
pw.out
-
${PARA_PREFIX}
${BINDIR}
/wstat.x
-nimage
${NIMAGE}
-i
wstat.in
>
wstat.out
${PARA_PREFIX}
${BINDIR}
/wstat.x
-nimage
${NIMAGE}
-i
wstat.in
>
wstat.out
-
tail
-5
wstat.out
tail
-5
wstat.out
-
${PARA_PREFIX}
${BINDIR}
/wfreq.x
-nimage
${NIMAGE}
-i
wfreq.in
>
wfreq.out
${PARA_PREFIX}
${BINDIR}
/wfreq.x
-nimage
${NIMAGE}
-i
wfreq.in
>
wfreq.out
-
tail
-5
wfreq.out
tail
-5
wfreq.out
clean
:
clean
:
-
/bin/rm
-rf
*
out
*in
*
upf
*
save
>
& /dev/null
-
/bin/rm
-rf
*
out
*in
*
upf
*
save
>
& /dev/null
...
...
test-suite/test002/Makefile
View file @
679e84ab
...
@@ -7,15 +7,15 @@ default: title all
...
@@ -7,15 +7,15 @@ default: title all
all
:
prepare_inputs run
all
:
prepare_inputs run
prepare_inputs
:
prepare_inputs
:
-
bash prepare_inputs.sh
bash prepare_inputs.sh
run
:
run
:
-
${PARA_PREFIX}
${BINDIR}
/pw.x
-i
pw.in
>
pw.out
${PARA_PREFIX}
${BINDIR}
/pw.x
-i
pw.in
>
pw.out
-
tail
-5
pw.out
tail
-5
pw.out
-
${PARA_PREFIX}
${BINDIR}
/wstat.x
-nimage
${NIMAGE}
-i
wstat.in
>
wstat.out
${PARA_PREFIX}
${BINDIR}
/wstat.x
-nimage
${NIMAGE}
-i
wstat.in
>
wstat.out
-
tail
-5
wstat.out
tail
-5
wstat.out
-
${PARA_PREFIX}
${BINDIR}
/wfreq.x
-nimage
${NIMAGE}
-i
wfreq.in
>
wfreq.out
${PARA_PREFIX}
${BINDIR}
/wfreq.x
-nimage
${NIMAGE}
-i
wfreq.in
>
wfreq.out
-
tail
-5
wfreq.out
tail
-5
wfreq.out
clean
:
clean
:
-
/bin/rm
-rf
*
out
*in
*
upf
*
save
>
& /dev/null
-
/bin/rm
-rf
*
out
*in
*
upf
*
save
>
& /dev/null
...
...
test-suite/test003/Makefile
View file @
679e84ab
...
@@ -7,15 +7,15 @@ default: title all
...
@@ -7,15 +7,15 @@ default: title all
all
:
prepare_inputs run
all
:
prepare_inputs run
prepare_inputs
:
prepare_inputs
:
-
bash prepare_inputs.sh
bash prepare_inputs.sh
run
:
run
:
-
${PARA_PREFIX}
${BINDIR}
/pw.x
-i
pw.in
>
pw.out
${PARA_PREFIX}
${BINDIR}
/pw.x
-i
pw.in
>
pw.out
-
tail
-5
pw.out
tail
-5
pw.out
-
${PARA_PREFIX}
${BINDIR}
/wstat.x
-nimage
${NIMAGE}
-i
wstat.in
>
wstat.out
${PARA_PREFIX}
${BINDIR}
/wstat.x
-nimage
${NIMAGE}
-i
wstat.in
>
wstat.out
-
tail
-5
wstat.out
tail
-5
wstat.out
-
${PARA_PREFIX}
${BINDIR}
/wfreq.x
-nimage
${NIMAGE}
-i
wfreq.in
>
wfreq.out
${PARA_PREFIX}
${BINDIR}
/wfreq.x
-nimage
${NIMAGE}
-i
wfreq.in
>
wfreq.out
-
tail
-5
wfreq.out
tail
-5
wfreq.out
clean
:
clean
:
-
/bin/rm
-rf
*
out
*in
*
upf
*
save
>
& /dev/null
-
/bin/rm
-rf
*
out
*in
*
upf
*
save
>
& /dev/null
...
...
test-suite/test003/prepare_inputs.sh
View file @
679e84ab
...
@@ -21,6 +21,7 @@ nspin = 2
...
@@ -21,6 +21,7 @@ nspin = 2
ecutwfc = 25.0
ecutwfc = 25.0
nbnd = 10
nbnd = 10
assume_isolated ='mp'
assume_isolated ='mp'
tot_magnetization = 0.
/
/
&electrons
&electrons
diago_full_acc = .TRUE.
diago_full_acc = .TRUE.
...
...
test-suite/test004/Makefile
View file @
679e84ab
...
@@ -7,15 +7,15 @@ default: title all
...
@@ -7,15 +7,15 @@ default: title all
all
:
prepare_inputs run
all
:
prepare_inputs run
prepare_inputs
:
prepare_inputs
:
-
bash prepare_inputs.sh
bash prepare_inputs.sh
run
:
run
:
-
${PARA_PREFIX}
${BINDIR}
/pw.x
-i
pw.in
>
pw.out
${PARA_PREFIX}
${BINDIR}
/pw.x
-i
pw.in
>
pw.out
-
tail
-5
pw.out
tail
-5
pw.out
-
${PARA_PREFIX}
${BINDIR}
/wstat.x
-nimage
${NIMAGE}
-i
wstat.in
>
wstat.out
${PARA_PREFIX}
${BINDIR}
/wstat.x
-nimage
${NIMAGE}
-i
wstat.in
>
wstat.out
-
tail
-5
wstat.out
tail
-5
wstat.out
-
${PARA_PREFIX}
${BINDIR}
/wfreq.x
-nimage
${NIMAGE}
-i
wfreq.in
>
wfreq.out
${PARA_PREFIX}
${BINDIR}
/wfreq.x
-nimage
${NIMAGE}
-i
wfreq.in
>
wfreq.out
-
tail
-5
wfreq.out
tail
-5
wfreq.out
clean
:
clean
:
-
/bin/rm
-rf
*
out
*in
*
upf
*
save
>
& /dev/null
-
/bin/rm
-rf
*
out
*in
*
upf
*
save
>
& /dev/null
...
...
test-suite/test004/prepare_inputs.sh
View file @
679e84ab
...
@@ -29,7 +29,7 @@ ATOMIC_POSITIONS (crystal)
...
@@ -29,7 +29,7 @@ ATOMIC_POSITIONS (crystal)
Si 0.0000 0.0000 0.0000
Si 0.0000 0.0000 0.0000
Si 0.2500 0.2500 0.2500
Si 0.2500 0.2500 0.2500
K_POINTS (automatic)
K_POINTS (automatic)
2 2
2 0 0 0
1 1
2 0 0 0
EOF
EOF
...
...
test-suite/test004/pw.out
deleted
100644 → 0
View file @
921f153a
2 total processes failed to start
test-suite/test004/wfreq.out
deleted
100644 → 0
View file @
921f153a
2 total processes failed to start
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment