10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-13 17:43:50 +01:00
QuantumPackage/src/fci/40.fci.bats

182 lines
3.8 KiB
Plaintext
Raw Normal View History

2019-01-25 11:39:31 +01:00
#!/usr/bin/env bats
source $QP_ROOT/tests/bats/common.bats.sh
source $QP_ROOT/quantum_package.rc
function run() {
thresh=$2
test_exe fci || skip
qp edit --check
qp set perturbation do_pt2 False
qp set determinants n_det_max 8000
qp set determinants n_states 1
qp set davidson threshold_davidson 1.e-10
qp set davidson n_states_diag 8
qp run fci
energy1="$(ezfio get fci energy | tr '[]' ' ' | cut -d ',' -f 1)"
eq $energy1 $1 $thresh
}
2019-02-05 22:15:29 +01:00
function run_stoch() {
thresh=$2
test_exe fci || skip
qp set perturbation do_pt2 True
qp set determinants n_det_max 100000
qp set determinants n_states 1
qp set davidson threshold_davidson 1.e-10
qp set davidson n_states_diag 1
qp run fci
energy1="$(ezfio get fci energy_pt2 | tr '[]' ' ' | cut -d ',' -f 1)"
eq $energy1 $1 $thresh
}
2019-01-25 11:39:31 +01:00
2019-02-05 22:15:29 +01:00
@test "F2" { # 4.07m
[[ -n $TRAVIS ]] && skip
qp set_file f2.ezfio
qp set_frozen_core
run_stoch -199.30496 1.e-4
}
2019-01-25 11:39:31 +01:00
@test "NH3" { # 10.6657s
qp set_file nh3.ezfio
qp set_mo_class --core="[1-4]" --act="[5-72]"
run -56.244753429144986 1.e-5
}
@test "DHNO" { # 11.4721s
qp set_file dhno.ezfio
qp set_mo_class --core="[1-7]" --act="[8-64]"
run -130.458875747063 1.e-5
}
@test "HCO" { # 12.2868s
qp set_file hco.ezfio
2019-02-04 23:23:08 +01:00
run -113.296794171915 2.e-05
2019-01-25 11:39:31 +01:00
}
@test "H2O2" { # 12.9214s
qp set_file h2o2.ezfio
qp set_mo_class --core="[1-2]" --act="[3-24]" --del="[25-38]"
2019-02-04 23:23:08 +01:00
run -151.004888189874 2.e-5
2019-01-25 11:39:31 +01:00
}
@test "HBO" { # 13.3144s
[[ -n $TRAVIS ]] && skip
qp set_file hbo.ezfio
2019-01-27 22:12:25 +01:00
run -100.214185815312 1.e-5
2019-01-25 11:39:31 +01:00
}
@test "H2O" { # 11.3727s
[[ -n $TRAVIS ]] && skip
qp set_file h2o.ezfio
2019-02-04 23:23:08 +01:00
run -76.2359268957699 2.e-5
2019-01-25 11:39:31 +01:00
}
@test "ClO" { # 13.3755s
[[ -n $TRAVIS ]] && skip
qp set_file clo.ezfio
2019-02-04 23:23:08 +01:00
run -534.546005867797 5.e-5
2019-01-25 11:39:31 +01:00
}
@test "SO" { # 13.4952s
[[ -n $TRAVIS ]] && skip
qp set_file so.ezfio
2019-02-05 22:15:29 +01:00
run -26.0144622194831 1.e-5
2019-01-25 11:39:31 +01:00
}
@test "H2S" { # 13.6745s
[[ -n $TRAVIS ]] && skip
qp set_file h2s.ezfio
run -398.859480581924 1.e-5
}
@test "OH" { # 13.865s
[[ -n $TRAVIS ]] && skip
qp set_file oh.ezfio
run -75.6119887538831 1.e-05
}
@test "SiH2_3B1" { # 13.938ss
[[ -n $TRAVIS ]] && skip
qp set_file sih2_3b1.ezfio
run -290.017539006762 1.e-5
}
@test "H3COH" { # 14.7299s
[[ -n $TRAVIS ]] && skip
qp set_file h3coh.ezfio
run -115.205054063687 1.e-5
}
@test "SiH3" { # 15.99s
[[ -n $TRAVIS ]] && skip
qp set_file sih3.ezfio
2019-02-05 22:15:29 +01:00
run -5.57269434557089 2.e-05
2019-01-25 11:39:31 +01:00
}
@test "CH4" { # 16.1612s
[[ -n $TRAVIS ]] && skip
qp set_file ch4.ezfio
qp set_mo_class --core="[1]" --act="[2-30]" --del="[31-59]"
2019-02-05 22:15:29 +01:00
run -40.2409858175829 2.e-5
2019-01-25 11:39:31 +01:00
}
@test "ClF" { # 16.8864s
[[ -n $TRAVIS ]] && skip
qp set_file clf.ezfio
2019-02-05 22:15:29 +01:00
run -559.170116079903 1.e-5
2019-01-25 11:39:31 +01:00
}
@test "SO2" { # 17.5645s
[[ -n $TRAVIS ]] && skip
qp set_file so2.ezfio
qp set_mo_class --core="[1-8]" --act="[9-87]"
2019-01-27 22:12:25 +01:00
run -41.5746738713298 5.e-5
2019-01-25 11:39:31 +01:00
}
@test "C2H2" { # 17.6827s
[[ -n $TRAVIS ]] && skip
qp set_file c2h2.ezfio
qp set_mo_class --act="[1-30]" --del="[31-36]"
2019-02-05 22:15:29 +01:00
run -12.3678973551285 2.e-5
2019-01-25 11:39:31 +01:00
}
@test "N2" { # 18.0198s
[[ -n $TRAVIS ]] && skip
qp set_file n2.ezfio
qp set_mo_class --core="[1,2]" --act="[3-40]" --del="[41-60]"
2019-02-05 22:15:29 +01:00
run -109.291310557766 1.e-4
2019-01-25 11:39:31 +01:00
}
@test "N2H4" { # 18.5006s
[[ -n $TRAVIS ]] && skip
qp set_file n2h4.ezfio
qp set_mo_class --core="[1-2]" --act="[3-24]" --del="[25-48]"
2019-02-05 22:15:29 +01:00
run -111.367234092521 2.e-5
2019-01-25 11:39:31 +01:00
}
@test "CO2" { # 21.1748s
[[ -n $TRAVIS ]] && skip
qp set_file co2.ezfio
qp set_mo_class --core="[1,2]" --act="[3-30]" --del="[31-42]"
2019-02-05 22:15:29 +01:00
run -187.969556614801 1.e-5
2019-01-25 11:39:31 +01:00
}
@test "[Cu(NH3)4]2+" { # 25.0417s
[[ -n $TRAVIS ]] && skip
qp set_file cu_nh3_4_2plus.ezfio
qp set_mo_class --core="[1-24]" --act="[25-45]" --del="[46-87]"
run -1862.98610987882 1.e-05
}
@test "HCN" { # 20.3273s
[[ -n $TRAVIS ]] && skip
qp set_file hcn.ezfio
qp set_mo_class --core="[1,2]" --act="[3-40]" --del="[41-55]"
2019-02-05 22:15:29 +01:00
run -93.0794109423741 2.e-5
2019-01-25 11:39:31 +01:00
}