2018-07-05 00:39:17 +02:00
|
|
|
|
2019-04-12 18:48:23 +02:00
|
|
|
let () =
|
|
|
|
|
|
|
|
Alcotest.run "Unit tests" [
|
|
|
|
"Util", Util.test_case ();
|
|
|
|
"Bitstring", Bitstring.test_case ();
|
|
|
|
"Spindeterminant", Spindeterminant.test_case ();
|
|
|
|
"Determinant", Determinant.test_case ();
|
|
|
|
"Excitation", Excitation.test_case ();
|
|
|
|
"Sparse vectors", Vector.test_case ();
|
|
|
|
"Sparse matrices", Matrix.test_case ();
|
|
|
|
"Cholesky", Cholesky.test_case ();
|
|
|
|
];
|
|
|
|
|
2018-07-05 00:39:17 +02:00
|
|
|
|
|
|
|
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 "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
|
|
|
|
|
|
|
|