Fix saving lists of arrays with recent versions of numpy
[qpms.git] / tests / CMakeLists.txt
blob63df6ae8a053e419e1bbe896ddeb8b3c0a8c541f
2 add_executable( test_vswf_translations_array test_vswf_translations_array.c )
3 target_link_libraries( test_vswf_translations_array qpms gsl blas lapacke ${QPMS_AMOSLIB} m )
4 target_include_directories ( test_vswf_translations_array PRIVATE .. )
6 add_executable( test_vswf_translations test_vswf_translations.c )
7 target_link_libraries( test_vswf_translations qpms gsl blas lapacke ${QPMS_AMOSLIB} m )
8 target_include_directories ( test_vswf_translations PRIVATE .. )
10 add_executable( test_single_translations_vs_calc single_translations_vs_calc.c )
11 target_link_libraries( test_single_translations_vs_calc qpms gsl lapacke ${QPMS_AMOSLIB} m )
12 target_include_directories( test_single_translations_vs_calc PRIVATE .. )
14 add_executable( test_scalar_ewald32 test_scalar_ewald32.c )
15 target_link_libraries( test_scalar_ewald32 qpms gsl lapacke ${QPMS_AMOSLIB} m )
16 target_include_directories( test_scalar_ewald32 PRIVATE .. )
18 add_executable( kidneycontour kidneycontour.c )
19 target_link_libraries( kidneycontour qpms gsl lapacke ${QPMS_AMOSLIB} m )
20 target_include_directories( kidneycontour PRIVATE .. )
22 add_executable( tbeyn tbeyn.c )
23 target_link_libraries( tbeyn qpms gsl lapacke ${QPMS_AMOSLIB} m )
24 target_include_directories( tbeyn PRIVATE .. )
26 add_executable( tbeyn2 tbeyn2.c )
27 target_link_libraries( tbeyn2 qpms gsl lapacke ${QPMS_AMOSLIB} m )
28 target_include_directories( tbeyn2 PRIVATE .. )
30 add_executable( tbeyn3a tbeyn3.c )
31 target_link_libraries( tbeyn3a qpms gsl lapacke ${QPMS_AMOSLIB} m )
32 target_include_directories( tbeyn3a PRIVATE .. )
33 target_compile_definitions( tbeyn3a PRIVATE VARIANTA )
35 add_executable( tbeyn3a_implus tbeyn3.c )
36 target_link_libraries( tbeyn3a_implus qpms gsl lapacke ${QPMS_AMOSLIB} m )
37 target_include_directories( tbeyn3a_implus PRIVATE .. )
38 target_compile_definitions( tbeyn3a_implus PRIVATE VARIANTA IMPLUS )
40 add_executable( tbeyn3a_kidney tbeyn3.c )
41 target_link_libraries( tbeyn3a_kidney qpms gsl lapacke ${QPMS_AMOSLIB} m )
42 target_include_directories( tbeyn3a_kidney PRIVATE .. )
43 target_compile_definitions( tbeyn3a_kidney PRIVATE VARIANTA IMPLUS_KIDNEY )
45 add_executable( tbeyn3b tbeyn3.c )
46 target_link_libraries( tbeyn3b qpms gsl lapacke ${QPMS_AMOSLIB} m )
47 target_include_directories( tbeyn3b PRIVATE .. )
48 target_compile_definitions( tbeyn3b PRIVATE VARIANTB RXSMALL )
50 add_executable( tbeyn3bfail tbeyn3.c )
51 target_link_libraries( tbeyn3bfail qpms gsl lapacke ${QPMS_AMOSLIB} m )
52 target_include_directories( tbeyn3bfail PRIVATE .. )
53 target_compile_definitions( tbeyn3bfail PRIVATE VARIANTB )
55 add_executable( tbeyn3c tbeyn3.c )
56 target_link_libraries( tbeyn3c qpms gsl lapacke ${QPMS_AMOSLIB} m )
57 target_include_directories( tbeyn3c PRIVATE .. )
58 target_compile_definitions( tbeyn3c PRIVATE VARIANTC RXSMALL )
60 add_executable( tbeyn3d tbeyn3.c )
61 target_link_libraries( tbeyn3d qpms gsl lapacke ${QPMS_AMOSLIB} m )
62 target_include_directories( tbeyn3d PRIVATE .. )
63 target_compile_definitions( tbeyn3d PRIVATE VARIANTD RXSMALL )
65 add_executable( tbeyn3e tbeyn3.c )
66 target_link_libraries( tbeyn3e qpms gsl lapacke ${QPMS_AMOSLIB} m )
67 target_include_directories( tbeyn3e PRIVATE .. )
68 target_compile_definitions( tbeyn3e PRIVATE VARIANTE RXSMALL )
70 add_executable( tbeyn3f tbeyn3.c )
71 target_link_libraries( tbeyn3f qpms gsl lapacke ${QPMS_AMOSLIB} m )
72 target_include_directories( tbeyn3f PRIVATE .. )
73 target_compile_definitions( tbeyn3f PRIVATE VARIANTF )
75 add_custom_target( mytests DEPENDS test_single_translations_vs_calc test_vswf_translations test_vswf_translations_array tbeyn )
77 add_test( NAME single_vs_array_translation_coeffs COMMAND test_single_translations_vs_calc )
79 add_test( NAME scalar_ewald32_square_realk1 COMMAND test_scalar_ewald32 
80 #       lMax b1.x b1.y b2.x b2.y wavenum.real wavenum.imag k.x k.y particle_shift.x particle_shift.y csphase rtol atol maxR maxK eta1 ...
81         3    1    0    0    1    2.3          0            2.7   1              0.5           0.1325      -1 1e-8 1e-10  20  160  1.5   1.6 2.5 2.6
82         )
84 add_test( NAME scalar_ewald32_square_realk2 COMMAND test_scalar_ewald32 
85 #       lMax b1.x b1.y b2.x b2.y wavenum.real wavenum.imag k.x k.y particle_shift.x particle_shift.y csphase rtol atol maxR maxK eta1 ...
86         3    1    0    0    1    2.3          0            2.7   1              0.0           0.0      -1 1e-8 1e-10  20  160  1.5   1.6 2.5 2.6
87         )
89 add_test( NAME scalar_ewald32_square_cplxk_positive_Im1 COMMAND test_scalar_ewald32 
90 #       lMax b1.x b1.y b2.x b2.y wavenum.real wavenum.imag k.x k.y particle_shift.x particle_shift.y csphase rtol atol maxR maxK eta1 ...
91         3    1    0    0    1    2.3          0.1          2.7   1              0.5           0.1325      -1 1e-8 1e-10  20  160  1.5   1.6 2.5 2.6
92         )
94 add_test( NAME scalar_ewald32_square_cplxk_negative_Im1 COMMAND test_scalar_ewald32 
95 #       lMax b1.x b1.y b2.x b2.y wavenum.real wavenum.imag k.x k.y particle_shift.x particle_shift.y csphase rtol atol maxR maxK eta1 ...
96         3    1    0    0    1    2.3          -0.1          2.7   1              0.5           0.1325      -1 1e-8 1e-10  20  160  1.5   1.6 2.5 2.6
97         )
99 add_test( NAME scalar_ewald32_square_cplxk_positive_Im2 COMMAND test_scalar_ewald32 
100 #       lMax b1.x b1.y b2.x b2.y wavenum.real wavenum.imag k.x k.y particle_shift.x particle_shift.y csphase rtol atol maxR maxK eta1 ...
101         3    1    0    0    1    2.3          0.1          2.7   1              0.0           0.0         -1 1e-8 1e-10  20  160  1.5   1.6 2.5 2.6
102         )
104 add_test( NAME scalar_ewald32_square_cplxk_negative_Im2 COMMAND test_scalar_ewald32 
105 #       lMax b1.x b1.y b2.x b2.y wavenum.real wavenum.imag k.x k.y particle_shift.x particle_shift.y csphase rtol atol maxR maxK eta1 ...
106         3    1    0    0    1    2.3          -0.1          2.7   1              0.0           0.0        -1 1e-8 1e-10  20  160  1.5   1.6 2.5 2.6
107         )
109 add_test( NAME scalar_ewald32_square_zerok COMMAND test_scalar_ewald32 
110 #       lMax b1.x b1.y b2.x b2.y wavenum.real wavenum.imag k.x k.y particle_shift.x particle_shift.y csphase rtol atol maxR maxK eta1 ...
111         3    1    0    0    1    2.3          0            0   0                0.5           0.1325      -1 1e-8 1e-10  40  160  1.5   1.6 2.5 2.6
112         )