10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-11-09 07:33:40 +01:00
QCaml/run_tests.ml

31 lines
726 B
OCaml
Raw Normal View History

2018-07-05 00:39:17 +02:00
let test_water_dz () =
let basis_file = "test_files/cc-pvdz"
and nuclei_file = "test_files/h2o.xyz"
in
2018-07-04 20:24:51 +02:00
2018-07-05 00:39:17 +02:00
let simulation_closed_shell =
2018-07-04 20:24:51 +02:00
Simulation.of_filenames ~charge:0 ~multiplicity:1 ~nuclei:nuclei_file basis_file
2018-07-05 00:39:17 +02:00
in
let ao_basis =
2019-02-20 18:15:15 +01:00
Simulation.ao_basis simulation_closed_shell
2018-07-05 00:39:17 +02:00
in
2019-02-27 21:28:56 +01:00
Alcotest.run "Unit tests" [
2019-02-15 13:48:48 +01:00
"Spindeterminant", Spindeterminant.test_case ();
2018-07-20 19:02:56 +02:00
"Determinant", Determinant.test_case ();
2019-02-18 15:39:26 +01:00
"Excitation", Excitation.test_case ();
2019-02-27 21:28:56 +01:00
"Sparse vectors", Vector.test_case ();
"Sparse matrices", Matrix.test_case ();
];
Alcotest.run "Water, cc-pVDZ" [
"AO_Basis", AOBasis.test_case ao_basis;
"Guess", Guess.test_case ao_basis;
2018-07-05 00:39:17 +02:00
]
2018-07-04 20:24:51 +02:00
let () =
2018-07-05 00:39:17 +02:00
test_water_dz ()