Commit 88f71040 authored by Doak, Peter W.'s avatar Doak, Peter W.
Browse files

Remove check for throw if domain is reinitialized.

parent cb417593
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -41,7 +41,4 @@ TEST(FrequencyDomainTest, Full) {
  EXPECT_EQ(2 * num_freqs, frequency_domain::get_size());
  EXPECT_EQ(elements_expected, frequency_domain::get_elements());
  EXPECT_EQ(indices_expected, frequency_domain::get_indices());

  // The domain can only be initialized once.
  EXPECT_THROW(frequency_domain::initialize(0.9, 10), std::logic_error);
}
+1 −2
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ using namespace dca::phys::domains;
TEST(TimeDomainLeftOriented, Basic) {
  EXPECT_EQ("time-domain-left-oriented", time_domain_left_oriented::get_name());
  EXPECT_FALSE(time_domain_left_oriented::is_initialized());
  // tdlo can't be initialized until after time_domain
  EXPECT_THROW(time_domain_left_oriented::initialize(), std::logic_error);

  // First we need to initialize time_domain.
@@ -35,6 +36,4 @@ TEST(TimeDomainLeftOriented, Basic) {

  const std::vector<double> elements_check{-beta + eps, -beta / time_slices, 0, beta / time_slices};
  EXPECT_EQ(elements_check, time_domain_left_oriented::get_elements());

  EXPECT_THROW(time_domain_left_oriented::initialize(), std::logic_error);
}
+0 −2
Original line number Diff line number Diff line
@@ -38,8 +38,6 @@ TEST(TimeDomainTest, Basic) {
                                           eps,         beta / time_slices,  beta - eps};
  EXPECT_EQ(elements_check, time_domain::get_elements());

  EXPECT_THROW(time_domain::initialize(beta, time_slices, eps), std::logic_error);

  // Check initialization of integration domain.
  time_domain::initialize_integration_domain(level, weights, nodes);