Skip to content

Commit

Permalink
DF autogen unit test only enabled if ERI, ERI3, and ERI2 are all supp…
Browse files Browse the repository at this point in the history
…orted
  • Loading branch information
evaleev committed Mar 5, 2024
1 parent 01a94ff commit 0d1a1a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/test-df-autogen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ Eigen::Tensor<double, 4> compute_eri4(const BasisSet &obs) {
}

TEST_CASE("DFBS-Generator", "[dfbs-generator]") {
#if defined(LIBINT2_SUPPORT_ERI) && defined(LIBINT2_SUPPORT_ERI3) && \
defined(LIBINT2_SUPPORT_ERI2)
// Will use Neon as a test case
libint2::Atom atom;
atom.atomic_number = 2;
Expand Down Expand Up @@ -181,5 +183,6 @@ TEST_CASE("DFBS-Generator", "[dfbs-generator]") {
}
}
REQUIRE_NOTHROW(norm < 1e-10);
#endif // LIBINT2_SUPPORT_ERI && LIBINT2_SUPPORT_ERI3 && LIBINT2_SUPPORT_ERI2
}
//

0 comments on commit 0d1a1a5

Please sign in to comment.