10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-06-26 15:12:14 +02:00

Fix unit_test

This commit is contained in:
Thomas Applencourt 2015-03-30 11:47:56 +02:00
parent d458696fcb
commit 757b785f30
3 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash
# Convert a old ezfio file (with option.irp.f ezfio_default)
# into a new EZFIO.cfg type
mv $1/Hartree_Fock $1/hartree_fock
mv $1/Hartree_Fock $1/hartree_fock
mv $1/hartree_Fock/thresh_SCF $1/hartree_fock/thresh_scf

View File

@ -1,4 +1,4 @@
[thresh_SCF]
[thresh_scf]
type: Threshold
doc: Threshold on the convergence of the Hartree Fock energy
interface: input

View File

@ -66,11 +66,14 @@ def run_hf(geo, basis):
init_folder(geo, basis)
ezfio.set_file("{0}.ezfio".format(geo))
ezfio.set_hartree_fock_mo_guess_type("Huckel")
ezfio.set_hartree_fock_thresh_scf("1.e-10")
ezfio.set_hartree_fock_n_it_scf_max("100")
cmd = "qp_run SCF {0}.ezfio/".format(geo)
subprocess.check_call([cmd], shell=True)
ezfio.set_file("{0}.ezfio".format(geo))
cur_e = ezfio.get_hartree_fock_energy()
ref_e = ref_energy[basis][geo]