Skip to content

Commit

Permalink
fixed eri test to work properly if Ahlrichs OSRR is used
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Nov 6, 2017
1 parent c7ff899 commit 1ef32a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Following is a brief summary of changes made in each release of Libint.
- 2017-11-06: 2.4.1
- plugged leaky Engine::set_{param,oper,braket}
- fixed uninitialized value use by libint2::molden::Export
- eri test will only validate integrals over Cartesian Gaussians if Obara-Saika-Ahlrichs are used

- 2017-10-25: 2.4.0
- changed default to use user-provided boost over bundled boost + minor fixes
Expand Down
10 changes: 10 additions & 0 deletions tests/eri/test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,11 @@ void test_3eri(unsigned int deriv_order,
auto lmax1 = std::min(lmax_max, lmax_default);
auto lmax2 = std::min(lmax_max, lmax_default);

// reference code only supports Cartesian gaussians
#if ERI3_PURE_SH
lmax0 = 1;
#endif

for (unsigned int l0 = 0; l0 <= lmax0; ++l0) {
for (unsigned int l1 = 0; l1 <= lmax1; ++l1) {
for (unsigned int l2 = 0; l2 <= lmax2; ++l2) {
Expand Down Expand Up @@ -676,6 +681,11 @@ void test_2eri(unsigned int deriv_order,

lmax = std::min(lmax_max, lmax);

// reference code only supports Cartesian gaussians
#if ERI2_PURE_SH
lmax = 1;
#endif

for (unsigned int l0 = 0; l0 <= lmax; ++l0) {
for (unsigned int l1 = 0; l1 <= lmax; ++l1) {

Expand Down

0 comments on commit 1ef32a0

Please sign in to comment.