2014-08-13 17:54:32 +02:00
|
|
|
open Core.Std;;
|
|
|
|
open Qptypes;;
|
|
|
|
|
|
|
|
let test_prim () =
|
|
|
|
let p =
|
|
|
|
{ Primitive.sym = Symmetry.P ;
|
|
|
|
Primitive.expo = Positive_float.of_float 0.15} in
|
|
|
|
Primitive.to_string p
|
|
|
|
|> print_string
|
|
|
|
;;
|
|
|
|
|
2014-08-23 16:18:19 +02:00
|
|
|
let test_gto_1 () =
|
2014-08-13 17:54:32 +02:00
|
|
|
let in_channel = open_in "/home/scemama/quantum_package/data/basis/cc-pVDZ" in
|
|
|
|
ignore (input_line in_channel);
|
|
|
|
let gto = Gto.read_one in_channel in
|
|
|
|
print_string (Gto.to_string gto);
|
|
|
|
let gto = Gto.read_one in_channel in
|
|
|
|
print_string (Gto.to_string gto);
|
2014-08-23 16:18:19 +02:00
|
|
|
let gto = Gto.read_one in_channel in
|
|
|
|
print_string (Gto.to_string gto);
|
|
|
|
;;
|
|
|
|
|
|
|
|
let test_gto_2 () =
|
|
|
|
let in_channel = open_in "/home/scemama/quantum_package/data/basis/cc-pVDZ" in
|
|
|
|
ignore (input_line in_channel);
|
|
|
|
let basis = Gto.read_basis in_channel in
|
|
|
|
List.iter basis ~f:(fun x-> Printf.printf "%s\n" (Gto.to_string x))
|
|
|
|
;;
|
|
|
|
|
|
|
|
let test_gto () =
|
|
|
|
let in_channel = open_in "/home/scemama/quantum_package/data/basis/cc-pVDZ" in
|
|
|
|
let basis = Gto.read_basis_of_element in_channel Element.C in
|
|
|
|
List.iter basis ~f:(fun x-> Printf.printf "%s\n" (Gto.to_string x))
|
2014-08-13 17:54:32 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
let test_module () =
|
|
|
|
test_gto()
|
|
|
|
;;
|
|
|
|
|
|
|
|
test_module ();;
|