2016-10-07 19:21:04 +02:00
|
|
|
#!/usr/bin/env bats
|
|
|
|
|
|
|
|
source $QP_ROOT/tests/bats/common.bats.sh
|
|
|
|
|
|
|
|
@test "CAS_SD H2O cc-pVDZ" {
|
2016-11-14 15:50:28 +01:00
|
|
|
test_exe cassd_zmq || skip
|
2016-10-07 19:21:04 +02:00
|
|
|
INPUT=h2o.ezfio
|
2016-11-14 20:20:42 +01:00
|
|
|
rm -rf work/h2o.ezfio/determinants/
|
2016-10-07 19:21:04 +02:00
|
|
|
qp_edit -c $INPUT
|
|
|
|
ezfio set_file $INPUT
|
2016-11-14 20:20:42 +01:00
|
|
|
ezfio set perturbation do_pt2_end True
|
|
|
|
ezfio set determinants n_det_max 16384
|
2016-10-07 19:21:04 +02:00
|
|
|
qp_set_mo_class $INPUT -core "[1]" -inact "[2,5]" -act "[3,4,6,7]" -virt "[8-24]"
|
2016-11-14 15:50:28 +01:00
|
|
|
qp_run cassd_zmq $INPUT
|
2016-11-14 20:20:42 +01:00
|
|
|
energy="$(ezfio get cas_sd_zmq energy_pt2)"
|
|
|
|
eq $energy -76.2311177912495 2.E-5
|
|
|
|
|
|
|
|
ezfio set determinants n_det_max 2048
|
|
|
|
ezfio set determinants read_wf True
|
|
|
|
ezfio set perturbation do_pt2_end True
|
|
|
|
qp_run cassd_zmq $INPUT
|
|
|
|
ezfio set determinants read_wf False
|
2016-11-14 15:50:28 +01:00
|
|
|
energy="$(ezfio get cas_sd_zmq energy)"
|
2016-11-14 20:20:42 +01:00
|
|
|
eq $energy -76.2300888408526 2.E-5
|
2016-10-07 19:21:04 +02:00
|
|
|
}
|
|
|
|
|