10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-09-13 06:58:29 +02:00
QCaml/SCF/HartreeFock.ml

19 lines
400 B
OCaml
Raw Normal View History

2018-02-23 18:44:31 +01:00
open Util
2019-02-27 21:28:56 +01:00
let make
?guess:(guess=`Huckel)
?max_scf:(max_scf=64)
?level_shift:(level_shift=0.1)
?threshold_SCF:(threshold_SCF=1.e-8)
simulation =
let f =
if Electrons.multiplicity @@ Simulation.electrons simulation = 1 then
RHF.make
else
ROHF.make
in f ~guess ~max_scf ~level_shift ~threshold_SCF simulation
2018-02-23 18:44:31 +01:00
2018-05-30 18:07:05 +02:00
let to_string = HartreeFock_type.to_string