~nickpapior/siesta/tddft-work

« back to all changes in this revision

Viewing changes to Tests/Makefile

  • Committer: Rafi Ullah
  • Date: 2017-08-30 14:09:10 UTC
  • mfrom: (611.1.19 trunk)
  • Revision ID: rraffiu@gmail.com-20170830140910-bhu0osuh4d59wn8e
Merged with trunk-630

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#
4
4
# Usage:
5
5
#
6
 
#          make                      --- Run all tests
7
 
#          make  check               --- Run all tests and check with reference file
8
 
#          make  check-only          --- Run all checks with reference file (run make before)
9
 
#          make  list                --- Show the list of tests
 
6
#          make                     --- Run all tests
 
7
#          make check               --- Run all tests and check with reference file
 
8
#          make check-only          --- Run all checks with reference file (run make before)
 
9
#          make show                --- Show the list of tests
10
10
#
11
11
#          make tests=fe_broyden { check | }     --- Run a single test
12
12
#          (Not implemented) make batch                --- Dispatch to batch system
15
15
#
16
16
#          By default, the version of SIESTA used is the one in the
17
17
#          parent directory (Obj or custom OBJDIR), and is executed
18
 
#          in serial mode.
19
 
#
20
 
#          To use another one, or a parallel version
21
 
#
22
 
#          make SIESTA=/some/path/to/siesta-program ....
23
 
#
24
 
#           or
25
 
#
26
 
#          make SIESTA="mpiexec -np 4 /path/to/parallel-siesta-program" ....
 
18
#          in parallel mode with 2 cores.
 
19
#
 
20
#          To change the MPI run command simply do:
 
21
#
 
22
#          make MPI="mpirun -np 4"
 
23
#
 
24
#          for 4 cores. Or
 
25
#
 
26
#          make MPI=
 
27
#
 
28
#          for a serial run.
27
29
#
28
30
#          It is also possible to have separate working directories,
29
31
#          by using the a "label". For example:
40
42
 
41
43
label=work
42
44
 
43
 
 
44
45
tests = ag anneal-cont ar2_vdw \
45
46
        batio3 benzene bessel \
46
47
        born born_spin \
47
48
        carbon_nanoscroll \
48
49
        ch4 chargeconf-h2o constant_volume \
 
50
        chess \
49
51
        dipole_correction \
50
52
        fe fe_broyden fe_clust_noncollinear fe_clust_noncollinear-gga \
51
53
        fe_cohp fen fe_noncol_kp \
52
54
        fire_benzene floating force_2 force_constants \
53
 
    gate_G_charge gate_G_hartree \
 
55
        gate_G_charge gate_G_hartree \
54
56
        ge111 graphite_c6 graphite_vdw_df \
55
57
        h2_bessel \
56
58
        h2o h2o_2 h2o_basis h2o_dipole h2o_dipole2 h2o_dos \
57
59
        h2o_findp_bug h2o_op_broyden h2o-pop h2o_radialgrid \
58
60
        h2o_reparam h2o-rhog-mixing h2oZ \
 
61
        h2o_filteret_basis h2o_am05 \
59
62
        h_chain \
60
63
        md_anneal md_nose md_npr md_pr md_verlet \
61
64
        mgc-force mgco3 \
64
67
        oxyn \
65
68
        pb_bulk pb_filter_cutoff pb_filter_tol \
66
69
        scfmix \
67
 
        si001 si111-spinpol si2x1h si2x1h-dipole \
 
70
        si001 si111-spinpol \
 
71
        si2x1h si2x1h-dipole si2x1h-dipole-gcs \
68
72
        si64 si64_coop \
69
 
        si_bandpoints si_coop \
 
73
        si_bandpoints si_coop si_fatbands \
70
74
        sic-slab \
71
75
        sih sih_fire sih_op_broyden \
72
76
        si-optical si_pdos_kgrid \
83
87
tests_soc  = SOC_Pt2_xx SOC_Pt2_xz SOC_Pt2_zy SOC_Pt2_zz
84
88
tests_soc += SOC_FePt_xx SOC_FePt_xz SOC_FePt_zy SOC_FePt_zz
85
89
 
 
90
# Tests only applicable for LUA
 
91
tests_lua  = lua_si111 lua_h2o
 
92
 
86
93
# Tests only applicable for FLOS
87
94
tests_flos  = flos_h2o_lbfgs flos_h2o_fire flos_h2o_meshcutoff flos_h2o_neb
88
95
 
89
96
# Accumulated variable for ALL tests
90
 
tests_all = $(tests) $(tests_soc) $(tests_flos)
 
97
tests_all = $(tests) $(tests_soc) $(tests_lua) $(tests_flos)
91
98
 
92
99
all: $(tests)
93
100
 
94
101
# Define test specific targets:
95
102
tests: $(tests)
96
103
tests-soc: $(tests_soc)
 
104
tests-lua: $(tests_lua)
97
105
tests-flos: $(tests_flos)
98
106
 
99
107
# Ensure that tests may be called individually