mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-11-09 06:53:38 +01:00
Compare commits
No commits in common. "00f7397a476ca9b71a65f004f2427a1855604453" and "44a0c4a8337e1c29bfc02abfb282f6773890ce64" have entirely different histories.
00f7397a47
...
44a0c4a833
12
configure
vendored
12
configure
vendored
@ -438,18 +438,18 @@ if [[ ${ZLIB} = $(not_found) ]] ; then
|
|||||||
fail
|
fail
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LIBCAP=$(find_lib -lcap)
|
|
||||||
if [[ ${LIBCAP} = $(not_found) ]] ; then
|
|
||||||
error "Libcap (libcap) is not installed."
|
|
||||||
fail
|
|
||||||
fi
|
|
||||||
|
|
||||||
BWRAP=$(find_exe bwrap)
|
BWRAP=$(find_exe bwrap)
|
||||||
if [[ ${BWRAP} = $(not_found) ]] ; then
|
if [[ ${BWRAP} = $(not_found) ]] ; then
|
||||||
error "Bubblewrap (bwrap) is not installed."
|
error "Bubblewrap (bwrap) is not installed."
|
||||||
fail
|
fail
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LIBCAP=$(find_lib -lcap)
|
||||||
|
if [[ ${LIBCAP} = $(not_found) ]] ; then
|
||||||
|
error "Libcap (libcap) is not installed."
|
||||||
|
fail
|
||||||
|
fi
|
||||||
|
|
||||||
OPAM=$(find_exe opam)
|
OPAM=$(find_exe opam)
|
||||||
if [[ ${OPAM} = $(not_found) ]] ; then
|
if [[ ${OPAM} = $(not_found) ]] ; then
|
||||||
error "OPAM (ocaml) package manager is not installed."
|
error "OPAM (ocaml) package manager is not installed."
|
||||||
|
212
ocaml/Bitlist.ml
212
ocaml/Bitlist.ml
@ -7,61 +7,82 @@ Type for bits strings
|
|||||||
list of Bits
|
list of Bits
|
||||||
*)
|
*)
|
||||||
|
|
||||||
type t = int64 array
|
type t = Bit.t list
|
||||||
|
|
||||||
|
|
||||||
let n_int = Array.length
|
|
||||||
|
|
||||||
(* Create a zero bit list *)
|
|
||||||
let zero n_int =
|
|
||||||
Array.make (N_int_number.to_int n_int) 0L
|
|
||||||
|
|
||||||
(* String representation *)
|
(* String representation *)
|
||||||
let to_string b =
|
let to_string b =
|
||||||
let int64_to_string x =
|
let rec do_work accu = function
|
||||||
String.init 64 (fun i ->
|
| [] -> accu
|
||||||
if Int64.logand x @@ Int64.shift_left 1L i <> 0L then
|
| head :: tail ->
|
||||||
'+'
|
let new_accu = (Bit.to_string head) ^ accu
|
||||||
else
|
in do_work new_accu tail
|
||||||
'-')
|
|
||||||
in
|
in
|
||||||
Array.map int64_to_string b
|
do_work "" b
|
||||||
|> Array.to_list
|
|
||||||
|> String.concat ""
|
|
||||||
|
|
||||||
|
|
||||||
let of_string ?(zero='0') ?(one='1') s =
|
let of_string ?(zero='0') ?(one='1') s =
|
||||||
let n_int = ( (String.length s - 1) lsr 6 ) + 1 in
|
List.init (String.length s) (String.get s)
|
||||||
let result = Array.make n_int 0L in
|
|> List.rev_map ( fun c ->
|
||||||
String.iteri (fun i c ->
|
if (c = zero) then Bit.Zero
|
||||||
if c = one then
|
else if (c = one) then Bit.One
|
||||||
begin
|
else (failwith ("Error in bitstring ") ) )
|
||||||
let iint = i lsr 6 in (* i / 64 *)
|
|
||||||
let k = i - (iint lsl 6) in
|
|
||||||
result.(iint) <- Int64.logor result.(iint) @@ Int64.shift_left 1L k;
|
|
||||||
end) s;
|
|
||||||
result
|
|
||||||
|
|
||||||
let of_string_mp = of_string ~zero:'-' ~one:'+'
|
let of_string_mp s =
|
||||||
|
List.init (String.length s) (String.get s)
|
||||||
|
|> List.rev_map (function
|
||||||
|
| '-' -> Bit.Zero
|
||||||
|
| '+' -> Bit.One
|
||||||
|
| _ -> failwith ("Error in bitstring ") )
|
||||||
|
|
||||||
|
|
||||||
(* Create a bit list from an int64 *)
|
(* Create a bit list from an int64 *)
|
||||||
let of_int64 i = [| i |]
|
let of_int64 i =
|
||||||
|
|
||||||
|
let rec do_work accu = function
|
||||||
|
| 0L -> Bit.Zero :: accu |> List.rev
|
||||||
|
| 1L -> Bit.One :: accu |> List.rev
|
||||||
|
| i ->
|
||||||
|
let b =
|
||||||
|
match (Int64.logand i 1L ) with
|
||||||
|
| 0L -> Bit.Zero
|
||||||
|
| 1L -> Bit.One
|
||||||
|
| _ -> raise (Failure "i land 1 not in (0,1)")
|
||||||
|
in
|
||||||
|
do_work (b :: accu) (Int64.shift_right_logical i 1)
|
||||||
|
in
|
||||||
|
|
||||||
|
let adjust_length result =
|
||||||
|
let rec do_work accu = function
|
||||||
|
| 64 -> List.rev accu
|
||||||
|
| i when i>64 -> raise (Failure "Error in of_int64 > 64")
|
||||||
|
| i when i<0 -> raise (Failure "Error in of_int64 < 0")
|
||||||
|
| i -> do_work (Bit.Zero :: accu) (i+1)
|
||||||
|
in
|
||||||
|
do_work (List.rev result) (List.length result)
|
||||||
|
in
|
||||||
|
adjust_length (do_work [] i)
|
||||||
|
|
||||||
|
|
||||||
(* Create an int64 from a bit list *)
|
(* Create an int64 from a bit list *)
|
||||||
let to_int64 = function
|
let to_int64 l =
|
||||||
| [| i |] -> i
|
assert ( (List.length l) <= 64) ;
|
||||||
| _ -> failwith "N_int > 1"
|
let rec do_work accu = function
|
||||||
|
| [] -> accu
|
||||||
|
| Bit.Zero::tail -> do_work Int64.(shift_left accu 1) tail
|
||||||
|
| Bit.One::tail -> do_work Int64.(logor one (shift_left accu 1)) tail
|
||||||
|
in do_work Int64.zero (List.rev l)
|
||||||
|
|
||||||
|
|
||||||
(* Create a bit list from an array of int64 *)
|
|
||||||
external of_int64_array : int64 array -> t = "%identity"
|
|
||||||
external to_int64_array : t -> int64 array = "%identity"
|
|
||||||
|
|
||||||
|
|
||||||
(* Create a bit list from a list of int64 *)
|
(* Create a bit list from a list of int64 *)
|
||||||
let of_int64_list l =
|
let of_int64_list l =
|
||||||
Array.of_list l |> of_int64_array
|
List.map of_int64 l
|
||||||
|
|> List.concat
|
||||||
|
|
||||||
|
(* Create a bit list from an array of int64 *)
|
||||||
|
let of_int64_array l =
|
||||||
|
Array.map of_int64 l
|
||||||
|
|> Array.to_list
|
||||||
|
|> List.concat
|
||||||
|
|
||||||
|
|
||||||
(* Compute n_int *)
|
(* Compute n_int *)
|
||||||
@ -70,64 +91,101 @@ let n_int_of_mo_num mo_num =
|
|||||||
N_int_number.of_int ( (mo_num-1)/bit_kind_size + 1 )
|
N_int_number.of_int ( (mo_num-1)/bit_kind_size + 1 )
|
||||||
|
|
||||||
|
|
||||||
|
(* Create a zero bit list *)
|
||||||
|
let zero n_int =
|
||||||
|
let n_int = N_int_number.to_int n_int in
|
||||||
|
let a = Array.init n_int (fun i-> 0L) in
|
||||||
|
of_int64_list ( Array.to_list a )
|
||||||
|
|
||||||
|
|
||||||
(* Create an int64 list from a bit list *)
|
(* Create an int64 list from a bit list *)
|
||||||
let to_int64_list l =
|
let to_int64_list l =
|
||||||
to_int64_array l |> Array.to_list
|
let rec do_work accu buf counter = function
|
||||||
|
| [] ->
|
||||||
|
begin
|
||||||
|
match buf with
|
||||||
|
| [] -> accu
|
||||||
|
| _ -> (List.rev buf)::accu
|
||||||
|
end
|
||||||
|
| i::tail ->
|
||||||
|
if (counter < 64) then
|
||||||
|
do_work accu (i::buf) (counter+1) tail
|
||||||
|
else
|
||||||
|
do_work ( (List.rev (i::buf))::accu) [] 1 tail
|
||||||
|
in
|
||||||
|
let l = do_work [] [] 1 l
|
||||||
|
in
|
||||||
|
List.rev_map to_int64 l
|
||||||
|
|
||||||
|
(* Create an array of int64 from a bit list *)
|
||||||
|
let to_int64_array l =
|
||||||
|
to_int64_list l
|
||||||
|
|> Array.of_list
|
||||||
|
|
||||||
(* Create a bit list from a list of MO indices *)
|
(* Create a bit list from a list of MO indices *)
|
||||||
let of_mo_number_list n_int l =
|
let of_mo_number_list n_int l =
|
||||||
let result = zero n_int in
|
let n_int = N_int_number.to_int n_int in
|
||||||
List.iter (fun j ->
|
let length = n_int*64 in
|
||||||
let i = (MO_number.to_int j) - 1 in
|
let a = Array.make length (Bit.Zero) in
|
||||||
let iint = i lsr 6 in (* i / 64 *)
|
List.iter (fun i-> a.((MO_number.to_int i)-1) <- Bit.One) l;
|
||||||
let k = i - (iint lsl 6) in
|
Array.to_list a
|
||||||
result.(iint) <- Int64.logor result.(iint) @@ Int64.shift_left 1L k;
|
|
||||||
) l;
|
|
||||||
result
|
|
||||||
|
|
||||||
|
|
||||||
let to_mo_number_list l =
|
let to_mo_number_list l =
|
||||||
let rec aux_one x shift accu = function
|
let a = Array.of_list l in
|
||||||
| -1 -> accu
|
let mo_num = MO_number.get_max () in
|
||||||
| i -> if Int64.logand x (Int64.shift_left 1L i) <> 0L then
|
let rec do_work accu = function
|
||||||
aux_one x shift ( (i+shift) ::accu) (i-1)
|
| 0 -> accu
|
||||||
else
|
| i ->
|
||||||
aux_one x shift accu (i-1)
|
begin
|
||||||
|
let new_accu =
|
||||||
|
match a.(i-1) with
|
||||||
|
| Bit.One -> (MO_number.of_int ~max:mo_num i)::accu
|
||||||
|
| Bit.Zero -> accu
|
||||||
|
in
|
||||||
|
do_work new_accu (i-1)
|
||||||
|
end
|
||||||
in
|
in
|
||||||
Array.mapi (fun i x ->
|
do_work [] (List.length l)
|
||||||
let shift = (i lsr 6) lsl 6 + 1 in
|
|
||||||
aux_one x shift [] 63
|
|
||||||
) l
|
|
||||||
|> Array.to_list
|
|
||||||
|> List.concat
|
|
||||||
|> List.map MO_number.of_int
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(* logical operations on bit_list *)
|
(* logical operations on bit_list *)
|
||||||
let and_operator a b = Array.map2 Int64.logand a b
|
let logical_operator2 op a b =
|
||||||
let xor_operator a b = Array.map2 Int64.logxor a b
|
let rec do_work_binary result a b =
|
||||||
let or_operator a b = Array.map2 Int64.logor a b
|
match a, b with
|
||||||
let not_operator b = Array.map Int64.lognot b
|
| [], [] -> result
|
||||||
|
| [], _ | _ , [] -> raise (Failure "Lists should have same length")
|
||||||
|
| (ha::ta), (hb::tb) ->
|
||||||
|
let newbit = op ha hb
|
||||||
let pop_sign =
|
in do_work_binary (newbit::result) ta tb
|
||||||
let mask =
|
|
||||||
(Int64.pred (Int64.shift_left 1L 63))
|
|
||||||
in
|
in
|
||||||
fun x -> Int64.logand mask x
|
List.rev (do_work_binary [] a b)
|
||||||
|
|
||||||
|
|
||||||
|
let logical_operator1 op b =
|
||||||
|
let rec do_work_unary result b =
|
||||||
|
match b with
|
||||||
|
| [] -> result
|
||||||
|
| (hb::tb) ->
|
||||||
|
let newbit = op hb
|
||||||
|
in do_work_unary (newbit::result) tb
|
||||||
|
in
|
||||||
|
List.rev (do_work_unary [] b)
|
||||||
|
|
||||||
|
|
||||||
|
let and_operator a b = logical_operator2 Bit.and_operator a b
|
||||||
|
let xor_operator a b = logical_operator2 Bit.xor_operator a b
|
||||||
|
let or_operator a b = logical_operator2 Bit.or_operator a b
|
||||||
|
let not_operator b = logical_operator1 Bit.not_operator b
|
||||||
|
|
||||||
|
|
||||||
let popcnt b =
|
let popcnt b =
|
||||||
Array.fold_left (fun accu x ->
|
List.fold_left (fun accu -> function
|
||||||
if x >= 0L then
|
| Bit.One -> accu+1
|
||||||
accu + (Z.popcount @@ Z.of_int64 x)
|
| Bit.Zero -> accu
|
||||||
else
|
) 0 b
|
||||||
accu + 1 + (Z.popcount @@ Z.of_int64 (pop_sign x))
|
|
||||||
) 0 b
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
type t
|
type t = Bit.t list
|
||||||
|
|
||||||
(** The zero bit list *)
|
(** The zero bit list *)
|
||||||
val zero : Qptypes.N_int_number.t -> t
|
val zero : Qptypes.N_int_number.t -> t
|
||||||
|
@ -25,6 +25,19 @@ let to_bitlist_couple x =
|
|||||||
in (xa,xb)
|
in (xa,xb)
|
||||||
|
|
||||||
|
|
||||||
|
let bitlist_to_string ~mo_num x =
|
||||||
|
let len =
|
||||||
|
MO_number.to_int mo_num
|
||||||
|
in
|
||||||
|
let s =
|
||||||
|
List.map (function
|
||||||
|
| Bit.Zero -> "-"
|
||||||
|
| Bit.One -> "+"
|
||||||
|
) x
|
||||||
|
|> String.concat ""
|
||||||
|
in
|
||||||
|
String.sub s 0 len
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let of_int64_array ~n_int ~alpha ~beta x =
|
let of_int64_array ~n_int ~alpha ~beta x =
|
||||||
@ -35,29 +48,37 @@ let of_int64_array ~n_int ~alpha ~beta x =
|
|||||||
in
|
in
|
||||||
if ( (Bitlist.popcnt a) <> alpha) then
|
if ( (Bitlist.popcnt a) <> alpha) then
|
||||||
begin
|
begin
|
||||||
|
let mo_num = MO_number.get_max () in
|
||||||
|
let mo_num = MO_number.of_int mo_num ~max:mo_num in
|
||||||
failwith (Printf.sprintf "Expected %d electrons in alpha determinant
|
failwith (Printf.sprintf "Expected %d electrons in alpha determinant
|
||||||
%s" alpha (Bitlist.to_string a) )
|
%s" alpha (bitlist_to_string ~mo_num:mo_num a) )
|
||||||
end;
|
end;
|
||||||
if ( (Bitlist.popcnt b) <> beta ) then
|
if ( (Bitlist.popcnt b) <> beta ) then
|
||||||
begin
|
begin
|
||||||
|
let mo_num = MO_number.get_max () in
|
||||||
|
let mo_num = MO_number.of_int mo_num ~max:mo_num in
|
||||||
failwith (Printf.sprintf "Expected %d electrons in beta determinant
|
failwith (Printf.sprintf "Expected %d electrons in beta determinant
|
||||||
%s" beta (Bitlist.to_string b) )
|
%s" beta (bitlist_to_string ~mo_num:mo_num b) )
|
||||||
end;
|
end;
|
||||||
x
|
x
|
||||||
|
|
||||||
|
|
||||||
let of_bitlist_couple ~n_int ~alpha ~beta (xa,xb) =
|
let of_bitlist_couple ?n_int ~alpha ~beta (xa,xb) =
|
||||||
let ba, bb =
|
let ba, bb =
|
||||||
Bitlist.to_int64_array xa ,
|
Bitlist.to_int64_array xa ,
|
||||||
Bitlist.to_int64_array xb
|
Bitlist.to_int64_array xb
|
||||||
|
and n_int =
|
||||||
|
match n_int with
|
||||||
|
| Some x -> x
|
||||||
|
| None -> Bitlist.n_int_of_mo_num (List.length xa)
|
||||||
in
|
in
|
||||||
of_int64_array ~n_int ~alpha ~beta (Array.concat [ba;bb])
|
of_int64_array ~n_int ~alpha ~beta (Array.concat [ba;bb])
|
||||||
|
|
||||||
|
|
||||||
let to_string ~mo_num x =
|
let to_string ~mo_num x =
|
||||||
let (xa,xb) = to_bitlist_couple x in
|
let (xa,xb) = to_bitlist_couple x in
|
||||||
[ " " ; Bitlist.to_string xa ; "\n" ;
|
[ " " ; bitlist_to_string ~mo_num xa ; "\n" ;
|
||||||
" " ; Bitlist.to_string xb ]
|
" " ; bitlist_to_string ~mo_num xb ]
|
||||||
|> String.concat ""
|
|> String.concat ""
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ val to_alpha_beta : t -> (int64 array)*(int64 array)
|
|||||||
val to_bitlist_couple : t -> Bitlist.t * Bitlist.t
|
val to_bitlist_couple : t -> Bitlist.t * Bitlist.t
|
||||||
|
|
||||||
(** Create from a bit list *)
|
(** Create from a bit list *)
|
||||||
val of_bitlist_couple : n_int:Qptypes.N_int_number.t ->
|
val of_bitlist_couple : ?n_int:Qptypes.N_int_number.t ->
|
||||||
alpha:Qptypes.Elec_alpha_number.t ->
|
alpha:Qptypes.Elec_alpha_number.t ->
|
||||||
beta:Qptypes.Elec_beta_number.t ->
|
beta:Qptypes.Elec_beta_number.t ->
|
||||||
Bitlist.t * Bitlist.t -> t
|
Bitlist.t * Bitlist.t -> t
|
||||||
|
@ -472,7 +472,6 @@ psi_det = %s
|
|||||||
|
|
||||||
(* Handle determinants *)
|
(* Handle determinants *)
|
||||||
let psi_det =
|
let psi_det =
|
||||||
let n_int = N_int_number.of_int @@ (MO_number.get_max () - 1) / 64 + 1 in
|
|
||||||
let n_alpha = Ezfio.get_electrons_elec_alpha_num ()
|
let n_alpha = Ezfio.get_electrons_elec_alpha_num ()
|
||||||
|> Elec_alpha_number.of_int
|
|> Elec_alpha_number.of_int
|
||||||
and n_beta = Ezfio.get_electrons_elec_beta_num ()
|
and n_beta = Ezfio.get_electrons_elec_beta_num ()
|
||||||
@ -484,8 +483,8 @@ psi_det = %s
|
|||||||
begin
|
begin
|
||||||
let newdet =
|
let newdet =
|
||||||
(Bitlist.of_string ~zero:'-' ~one:'+' alpha ,
|
(Bitlist.of_string ~zero:'-' ~one:'+' alpha ,
|
||||||
Bitlist.of_string ~zero:'-' ~one:'+' beta)
|
Bitlist.of_string ~zero:'-' ~one:'+' beta)
|
||||||
|> Determinant.of_bitlist_couple ~n_int ~alpha:n_alpha ~beta:n_beta
|
|> Determinant.of_bitlist_couple ~alpha:n_alpha ~beta:n_beta
|
||||||
|> Determinant.sexp_of_t
|
|> Determinant.sexp_of_t
|
||||||
|> Sexplib.Sexp.to_string
|
|> Sexplib.Sexp.to_string
|
||||||
in
|
in
|
||||||
@ -493,11 +492,9 @@ psi_det = %s
|
|||||||
end
|
end
|
||||||
| _::tail -> read_dets accu tail
|
| _::tail -> read_dets accu tail
|
||||||
in
|
in
|
||||||
(*
|
|
||||||
let dets =
|
let dets =
|
||||||
List.map String_ext.rev dets
|
List.map String_ext.rev dets
|
||||||
in
|
in
|
||||||
*)
|
|
||||||
let a =
|
let a =
|
||||||
read_dets [] dets
|
read_dets [] dets
|
||||||
|> String.concat ""
|
|> String.concat ""
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
true: package(cryptokit,zarith,zmq,str,sexplib,ppx_sexp_conv,ppx_deriving,getopt)
|
true: package(cryptokit,zmq,str,sexplib,ppx_sexp_conv,ppx_deriving,getopt)
|
||||||
true: thread
|
true: thread
|
||||||
false: profile
|
false: profile
|
||||||
<*byte> : linkdep(c_bindings.o), custom
|
<*byte> : linkdep(c_bindings.o), custom
|
||||||
|
@ -112,9 +112,9 @@ let set ~core ~inact ~act ~virt ~del =
|
|||||||
and av = Excitation.create_single act virt
|
and av = Excitation.create_single act virt
|
||||||
in
|
in
|
||||||
let single_excitations = [ ia ; aa ; av ]
|
let single_excitations = [ ia ; aa ; av ]
|
||||||
|> List.map (fun z ->
|
|> List.map (fun x ->
|
||||||
let open Excitation in
|
let open Excitation in
|
||||||
match z with
|
match x with
|
||||||
| Single (x,y) ->
|
| Single (x,y) ->
|
||||||
( MO_class.to_bitlist n_int (Hole.to_mo_class x),
|
( MO_class.to_bitlist n_int (Hole.to_mo_class x),
|
||||||
MO_class.to_bitlist n_int (Particle.to_mo_class y) )
|
MO_class.to_bitlist n_int (Particle.to_mo_class y) )
|
||||||
@ -187,10 +187,9 @@ let set ~core ~inact ~act ~virt ~del =
|
|||||||
match aa with
|
match aa with
|
||||||
| Double _ -> assert false
|
| Double _ -> assert false
|
||||||
| Single (x,y) ->
|
| Single (x,y) ->
|
||||||
Bitlist.to_int64_list
|
( MO_class.to_bitlist n_int (Hole.to_mo_class x) ) @
|
||||||
( MO_class.to_bitlist n_int ( Hole.to_mo_class x) ) @
|
( MO_class.to_bitlist n_int (Particle.to_mo_class y) )
|
||||||
Bitlist.to_int64_list
|
|> Bitlist.to_int64_list
|
||||||
( MO_class.to_bitlist n_int (Particle.to_mo_class y) )
|
|
||||||
in
|
in
|
||||||
Ezfio.set_bitmasks_n_mask_cas 1;
|
Ezfio.set_bitmasks_n_mask_cas 1;
|
||||||
Ezfio.ezfio_array_of_list ~rank:3 ~dim:([| (N_int_number.to_int n_int) ; 2; 1|]) ~data:result
|
Ezfio.ezfio_array_of_list ~rank:3 ~dim:([| (N_int_number.to_int n_int) ; 2; 1|]) ~data:result
|
||||||
|
@ -85,7 +85,7 @@ subroutine run_selection_slave(thread,iproc,energy)
|
|||||||
if(ctask > 0) then
|
if(ctask > 0) then
|
||||||
call sort_selection_buffer(buf)
|
call sort_selection_buffer(buf)
|
||||||
! call merge_selection_buffers(buf,buf2)
|
! call merge_selection_buffers(buf,buf2)
|
||||||
!print *, task_id(1), pt2(1), buf%cur, ctask
|
print *, task_id(1), pt2(1), buf%cur, ctask
|
||||||
call push_selection_results(zmq_socket_push, pt2, variance, norm, buf, task_id(1), ctask)
|
call push_selection_results(zmq_socket_push, pt2, variance, norm, buf, task_id(1), ctask)
|
||||||
! buf%mini = buf2%mini
|
! buf%mini = buf2%mini
|
||||||
pt2(:) = 0d0
|
pt2(:) = 0d0
|
||||||
|
@ -36,24 +36,24 @@ function run_stoch() {
|
|||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file f2.ezfio
|
qp set_file f2.ezfio
|
||||||
qp set_frozen_core
|
qp set_frozen_core
|
||||||
run_stoch -199.30486 1.e-4
|
run_stoch -199.30496 1.e-4
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "NH3" { # 10.6657s
|
@test "NH3" { # 10.6657s
|
||||||
qp set_file nh3.ezfio
|
qp set_file nh3.ezfio
|
||||||
qp set_mo_class --core="[1-4]" --act="[5-72]"
|
qp set_mo_class --core="[1-4]" --act="[5-72]"
|
||||||
run -56.244753429144986 1.e-4
|
run -56.244753429144986 1.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "DHNO" { # 11.4721s
|
@test "DHNO" { # 11.4721s
|
||||||
qp set_file dhno.ezfio
|
qp set_file dhno.ezfio
|
||||||
qp set_mo_class --core="[1-7]" --act="[8-64]"
|
qp set_mo_class --core="[1-7]" --act="[8-64]"
|
||||||
run -130.459020029816 1.e-4
|
run -130.459020029816 1.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "HCO" { # 12.2868s
|
@test "HCO" { # 12.2868s
|
||||||
qp set_file hco.ezfio
|
qp set_file hco.ezfio
|
||||||
run -113.297494345682 1.e-4
|
run -113.297494345682 2.e-05
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "H2O2" { # 12.9214s
|
@test "H2O2" { # 12.9214s
|
||||||
@ -65,82 +65,82 @@ function run_stoch() {
|
|||||||
@test "HBO" { # 13.3144s
|
@test "HBO" { # 13.3144s
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file hbo.ezfio
|
qp set_file hbo.ezfio
|
||||||
run -100.212829869715 1.e-4
|
run -100.214185815312 1.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "H2O" { # 11.3727s
|
@test "H2O" { # 11.3727s
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file h2o.ezfio
|
qp set_file h2o.ezfio
|
||||||
run -76.2359268957699 1.e-4
|
run -76.2359268957699 2.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "ClO" { # 13.3755s
|
@test "ClO" { # 13.3755s
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file clo.ezfio
|
qp set_file clo.ezfio
|
||||||
run -534.545881614967 1.e-4
|
run -534.546005867797 5.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "SO" { # 13.4952s
|
@test "SO" { # 13.4952s
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file so.ezfio
|
qp set_file so.ezfio
|
||||||
run -26.0158153138924 1.e-4
|
run -26.0124797722154 1.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "H2S" { # 13.6745s
|
@test "H2S" { # 13.6745s
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file h2s.ezfio
|
qp set_file h2s.ezfio
|
||||||
run -398.859168655255 1.e-4
|
run -398.859480581924 1.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "OH" { # 13.865s
|
@test "OH" { # 13.865s
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file oh.ezfio
|
qp set_file oh.ezfio
|
||||||
run -75.6120779012574 1.e-4
|
run -75.6119887538831 1.e-05
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "SiH2_3B1" { # 13.938ss
|
@test "SiH2_3B1" { # 13.938ss
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file sih2_3b1.ezfio
|
qp set_file sih2_3b1.ezfio
|
||||||
run -290.017539006762 1.e-4
|
run -290.017539006762 1.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "H3COH" { # 14.7299s
|
@test "H3COH" { # 14.7299s
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file h3coh.ezfio
|
qp set_file h3coh.ezfio
|
||||||
run -115.205941463667 1.e-4
|
run -115.205054063687 1.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "SiH3" { # 15.99s
|
@test "SiH3" { # 15.99s
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file sih3.ezfio
|
qp set_file sih3.ezfio
|
||||||
run -5.57241217753818 1.e-4
|
run -5.57269434557089 2.e-05
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "CH4" { # 16.1612s
|
@test "CH4" { # 16.1612s
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file ch4.ezfio
|
qp set_file ch4.ezfio
|
||||||
qp set_mo_class --core="[1]" --act="[2-30]" --del="[31-59]"
|
qp set_mo_class --core="[1]" --act="[2-30]" --del="[31-59]"
|
||||||
run -40.2409678239136 1.e-4
|
run -40.2409059687324 2.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "ClF" { # 16.8864s
|
@test "ClF" { # 16.8864s
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file clf.ezfio
|
qp set_file clf.ezfio
|
||||||
run -559.170272077166 1.e-4
|
run -559.170406471496 1.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "SO2" { # 17.5645s
|
@test "SO2" { # 17.5645s
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file so2.ezfio
|
qp set_file so2.ezfio
|
||||||
qp set_mo_class --core="[1-8]" --act="[9-87]"
|
qp set_mo_class --core="[1-8]" --act="[9-87]"
|
||||||
run -41.5746738713298 1.e-4
|
run -41.5746738713298 5.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "C2H2" { # 17.6827s
|
@test "C2H2" { # 17.6827s
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file c2h2.ezfio
|
qp set_file c2h2.ezfio
|
||||||
qp set_mo_class --act="[1-30]" --del="[31-36]"
|
qp set_mo_class --act="[1-30]" --del="[31-36]"
|
||||||
run -12.3656179738175 1.e-4
|
run -12.3670840202635 2.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "N2" { # 18.0198s
|
@test "N2" { # 18.0198s
|
||||||
@ -154,14 +154,14 @@ function run_stoch() {
|
|||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file n2h4.ezfio
|
qp set_file n2h4.ezfio
|
||||||
qp set_mo_class --core="[1-2]" --act="[3-24]" --del="[25-48]"
|
qp set_mo_class --core="[1-2]" --act="[3-24]" --del="[25-48]"
|
||||||
run -111.367332681559 1.e-4
|
run -111.367234092521 2.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "CO2" { # 21.1748s
|
@test "CO2" { # 21.1748s
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file co2.ezfio
|
qp set_file co2.ezfio
|
||||||
qp set_mo_class --core="[1,2]" --act="[3-30]" --del="[31-42]"
|
qp set_mo_class --core="[1,2]" --act="[3-30]" --del="[31-42]"
|
||||||
run -187.968599504402 1.e-4
|
run -187.969676381867 1.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -169,13 +169,13 @@ function run_stoch() {
|
|||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file cu_nh3_4_2plus.ezfio
|
qp set_file cu_nh3_4_2plus.ezfio
|
||||||
qp set_mo_class --core="[1-24]" --act="[25-45]" --del="[46-87]"
|
qp set_mo_class --core="[1-24]" --act="[25-45]" --del="[46-87]"
|
||||||
run -1862.98614665139 1.e-04
|
run -1862.98610987882 1.e-05
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "HCN" { # 20.3273s
|
@test "HCN" { # 20.3273s
|
||||||
[[ -n $TRAVIS ]] && skip
|
[[ -n $TRAVIS ]] && skip
|
||||||
qp set_file hcn.ezfio
|
qp set_file hcn.ezfio
|
||||||
qp set_mo_class --core="[1,2]" --act="[3-40]" --del="[41-55]"
|
qp set_mo_class --core="[1,2]" --act="[3-40]" --del="[41-55]"
|
||||||
run -93.0728641601823 1.e-4
|
run -93.0799328685679 2.e-5
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user