2016-10-07 19:21:04 +02:00
|
|
|
#!/usr/bin/env bats
|
|
|
|
|
|
|
|
source $QP_ROOT/tests/bats/common.bats.sh
|
|
|
|
|
|
|
|
#=== H2O
|
|
|
|
@test "MRCC-lambda H2O cc-pVDZ" {
|
|
|
|
INPUT=h2o.ezfio
|
2018-07-27 11:04:30 +02:00
|
|
|
EXE=mrcc_zmq
|
2016-10-07 19:21:04 +02:00
|
|
|
test_exe $EXE || skip
|
|
|
|
qp_edit -c $INPUT
|
|
|
|
ezfio set_file $INPUT
|
|
|
|
ezfio set determinants threshold_generators 1.
|
|
|
|
ezfio set determinants threshold_selectors 1.
|
|
|
|
ezfio set determinants read_wf True
|
|
|
|
ezfio set mrcepa0 lambda_type 1
|
2018-07-27 11:04:30 +02:00
|
|
|
ezfio set mrcepa0 perturbative_triples 0
|
2016-10-07 19:21:04 +02:00
|
|
|
ezfio set mrcepa0 n_it_max_dressed_ci 3
|
2018-03-20 17:23:00 +01:00
|
|
|
cp -r $INPUT TMP ; qp_run $EXE TMP
|
|
|
|
ezfio set_file TMP
|
2016-11-14 20:20:42 +01:00
|
|
|
energy="$(ezfio get mrcepa0 energy_pt2)"
|
2018-03-20 17:23:00 +01:00
|
|
|
rm -rf TMP
|
2018-07-30 19:37:36 +02:00
|
|
|
eq $energy -76.2382975461183 1.e-4
|
2018-06-27 15:20:33 +02:00
|
|
|
}
|
|
|
|
|
2016-10-07 19:21:04 +02:00
|
|
|
|
|
|
|
@test "MRCC H2O cc-pVDZ" {
|
|
|
|
INPUT=h2o.ezfio
|
2018-07-27 11:04:30 +02:00
|
|
|
EXE=mrcc_zmq
|
2016-10-07 19:21:04 +02:00
|
|
|
test_exe $EXE || skip
|
|
|
|
qp_edit -c $INPUT
|
|
|
|
ezfio set_file $INPUT
|
|
|
|
ezfio set determinants threshold_generators 1.
|
|
|
|
ezfio set determinants threshold_selectors 1.
|
|
|
|
ezfio set determinants read_wf True
|
|
|
|
ezfio set mrcepa0 lambda_type 0
|
2018-07-27 11:04:30 +02:00
|
|
|
ezfio set mrcepa0 perturbative_triples 0
|
2016-10-07 19:21:04 +02:00
|
|
|
ezfio set mrcepa0 n_it_max_dressed_ci 3
|
2018-03-20 17:23:00 +01:00
|
|
|
cp -r $INPUT TMP ; qp_run $EXE TMP
|
|
|
|
ezfio set_file TMP
|
2016-11-14 20:20:42 +01:00
|
|
|
energy="$(ezfio get mrcepa0 energy_pt2)"
|
2018-03-20 17:23:00 +01:00
|
|
|
rm -rf TMP
|
2018-07-30 19:37:36 +02:00
|
|
|
eq $energy -76.2382468380776 1.e-4
|
2018-06-27 15:20:33 +02:00
|
|
|
}
|
|
|
|
|
2018-06-28 10:38:57 +02:00
|
|
|
#@test "MRCC-stoch H2O cc-pVDZ" {
|
|
|
|
# INPUT=h2o.ezfio
|
|
|
|
# EXE=mrcc_zmq
|
|
|
|
# test_exe $EXE || skip
|
|
|
|
# qp_edit -c $INPUT
|
|
|
|
# ezfio set_file $INPUT
|
|
|
|
# ezfio set determinants threshold_generators 1.
|
|
|
|
# ezfio set determinants threshold_selectors 1.
|
|
|
|
# ezfio set determinants read_wf True
|
|
|
|
# ezfio set mrcepa0 lambda_type 0
|
|
|
|
# ezfio set mrcepa0 n_it_max_dressed_ci 3
|
|
|
|
# cp -r $INPUT TMP ; qp_run $EXE TMP
|
|
|
|
# ezfio set_file TMP
|
|
|
|
# energy="$(ezfio get mrcepa0 energy_pt2)"
|
|
|
|
# rm -rf TMP
|
|
|
|
# eq $energy -76.2379517543157 1.e-4
|
|
|
|
#}
|
2016-10-07 19:21:04 +02:00
|
|
|
|
|
|
|
@test "MRSC2 H2O cc-pVDZ" {
|
|
|
|
INPUT=h2o.ezfio
|
|
|
|
EXE=mrsc2
|
|
|
|
test_exe $EXE || skip
|
|
|
|
qp_edit -c $INPUT
|
|
|
|
ezfio set_file $INPUT
|
|
|
|
ezfio set determinants threshold_generators 1.
|
|
|
|
ezfio set determinants threshold_selectors 1.
|
|
|
|
ezfio set determinants read_wf True
|
2016-12-01 09:46:36 +01:00
|
|
|
ezfio set mrcepa0 lambda_type 1
|
2016-10-07 19:21:04 +02:00
|
|
|
ezfio set mrcepa0 n_it_max_dressed_ci 3
|
2018-07-27 11:04:30 +02:00
|
|
|
ezfio set mrcepa0 perturbative_triples 0
|
2018-03-20 17:23:00 +01:00
|
|
|
cp -r $INPUT TMP ; qp_run $EXE TMP
|
|
|
|
ezfio set_file TMP
|
2016-11-14 20:20:42 +01:00
|
|
|
energy="$(ezfio get mrcepa0 energy_pt2)"
|
2018-03-20 17:23:00 +01:00
|
|
|
rm -rf TMP
|
2018-07-30 19:37:36 +02:00
|
|
|
eq $energy -76.2358860928235 3.e-4
|
2016-10-07 19:21:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@test "MRCEPA0 H2O cc-pVDZ" {
|
|
|
|
INPUT=h2o.ezfio
|
|
|
|
EXE=mrcepa0
|
|
|
|
test_exe $EXE || skip
|
|
|
|
qp_edit -c $INPUT
|
|
|
|
ezfio set_file $INPUT
|
|
|
|
ezfio set determinants threshold_generators 1.
|
|
|
|
ezfio set determinants threshold_selectors 1.
|
|
|
|
ezfio set determinants read_wf True
|
2018-07-27 11:04:30 +02:00
|
|
|
ezfio set mrcepa0 perturbative_triples 0
|
2016-12-01 09:46:36 +01:00
|
|
|
ezfio set mrcepa0 lambda_type 1
|
2016-10-07 19:21:04 +02:00
|
|
|
ezfio set mrcepa0 n_it_max_dressed_ci 3
|
2018-03-20 17:23:00 +01:00
|
|
|
cp -r $INPUT TMP ; qp_run $EXE TMP
|
|
|
|
ezfio set_file TMP
|
2016-11-14 20:20:42 +01:00
|
|
|
energy="$(ezfio get mrcepa0 energy_pt2)"
|
2018-03-20 17:23:00 +01:00
|
|
|
rm -rf TMP
|
2018-07-30 19:37:36 +02:00
|
|
|
eq $energy -76.2412031502384 2.e-4
|
2016-10-07 19:21:04 +02:00
|
|
|
}
|
|
|
|
|