Skip to content

Commit

Permalink
Tests verifying psi4#1093 is fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathonMisiewicz committed Jul 26, 2018
1 parent ffd8d60 commit f7e179d
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/dfmp2-freq1/CMakeLists.txt
@@ -0,0 +1,3 @@
include(TestingMacros)

add_regression_test(dfmp2-freq1 "psi;quicktests;df;dfmp2;freq")
25 changes: 25 additions & 0 deletions tests/dfmp2-freq1/input.dat
@@ -0,0 +1,25 @@
#! DF-MP2 frequency by difference of energies for H2O


molecule h2o {
0 1
o
h 1 0.958
h 1 0.958 2 104.4776
}

set {
basis cc-pvdz
df_basis_scf cc-pvdz-jkfit
df_basis_cc cc-pvdz-ri
scf_type df
guess sad
freeze_core true
cc_type df
qc_module occ
}

e, wfn = frequencies('mp2', dertype=0, return_wfn=True)
fd_freqs = wfn.frequencies().to_array() # TEST
compare_arrays([1635.3, 3933.1, 4071.9], fd_freqs, 1, # TEST
"Frequencies vs. reference frequencies 07/2018") # TEST
3 changes: 3 additions & 0 deletions tests/dfmp2-freq2/CMakeLists.txt
@@ -0,0 +1,3 @@
include(TestingMacros)

add_regression_test(dfmp2-freq1 "psi;quicktests;df;dfmp2;freq")
26 changes: 26 additions & 0 deletions tests/dfmp2-freq2/input.dat
@@ -0,0 +1,26 @@
#! DF-MP2 frequency by difference of energies for H2O


molecule h2o {
0 1
o
h 1 0.958
h 1 0.958 2 104.4776
}

set {
basis cc-pvdz
df_basis_scf cc-pvdz-jkfit
df_basis_cc cc-pvdz-ri
scf_type df
guess sad
freeze_core true
cc_type df
qc_module occ
}

e, wfn = frequencies('mp2', dertype=1, return_wfn=True)
fd_freqs = wfn.frequencies().to_array() # TEST
compare_arrays([1635.3, 3933.1, 4071.9], fd_freqs, 1, # TEST
"Frequencies vs. reference frequencies 07/2018") # TEST

0 comments on commit f7e179d

Please sign in to comment.