mirror of
https://github.com/LCPQ/quantum_package
synced 2024-10-02 06:20:59 +02:00
Added list of basis sets
This commit is contained in:
parent
d3530303ed
commit
89a376512a
@ -17,7 +17,7 @@ let spec =
|
|||||||
~doc:"int Spin multiplicity (2S+1) of the molecule. Default is 1."
|
~doc:"int Spin multiplicity (2S+1) of the molecule. Default is 1."
|
||||||
+> flag "p" no_arg
|
+> flag "p" no_arg
|
||||||
~doc:" Using pseudopotentials"
|
~doc:" Using pseudopotentials"
|
||||||
+> anon ("xyz_file" %: string)
|
+> anon ("xyz_file" %: file )
|
||||||
|
|
||||||
|
|
||||||
let dummy_centers ~threshold ~molecule ~nuclei =
|
let dummy_centers ~threshold ~molecule ~nuclei =
|
||||||
@ -68,7 +68,20 @@ let dummy_centers ~threshold ~molecule ~nuclei =
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
let list_basis () =
|
||||||
|
let basis_list =
|
||||||
|
Qpackage.root ^ "/install/emsl/EMSL_api.py list_basis"
|
||||||
|
|> Unix.open_process_in
|
||||||
|
|> In_channel.input_lines
|
||||||
|
|> List.map ~f:(fun x ->
|
||||||
|
match String.split x ~on:'\'' with
|
||||||
|
| [] -> ""
|
||||||
|
| a :: []
|
||||||
|
| _ :: a :: _ -> String.strip a
|
||||||
|
)
|
||||||
|
in
|
||||||
|
List.sort basis_list ~cmp:String.ascending
|
||||||
|
|> String.concat ~sep:"\t"
|
||||||
|
|
||||||
|
|
||||||
let run ?o b c d m p xyz_file =
|
let run ?o b c d m p xyz_file =
|
||||||
@ -345,6 +358,13 @@ let command =
|
|||||||
Command.basic
|
Command.basic
|
||||||
~summary: "Quantum Package command"
|
~summary: "Quantum Package command"
|
||||||
~readme:(fun () -> "
|
~readme:(fun () -> "
|
||||||
|
|
||||||
|
=== Available basis sets ===
|
||||||
|
|
||||||
|
" ^ (list_basis ()) ^ "
|
||||||
|
|
||||||
|
============================
|
||||||
|
|
||||||
Creates an EZFIO directory from a standard xyz file. The basis set is defined
|
Creates an EZFIO directory from a standard xyz file. The basis set is defined
|
||||||
as a single string if all the atoms are taken from the same basis set,
|
as a single string if all the atoms are taken from the same basis set,
|
||||||
otherwise specific elements can be defined as follows:
|
otherwise specific elements can be defined as follows:
|
||||||
|
Loading…
Reference in New Issue
Block a user