20 std::set<unsigned int> flux_regions;
22 unsigned int i_side = 0;
24 for (
const auto & W_pair : W_pairs)
26 const auto & WL = W_pair.first;
27 const auto & WR = W_pair.second;
35 const auto FLR = flux.getFlux(i_side, 0,
true, UL, UR, 1.0);
36 const auto FRL = flux.getFlux(i_side, 0,
false, UL, UR, 1.0);
38 flux_regions.insert(flux.getLastRegionIndex());
40 const auto FRL_flipped = flux.getFlux(i_side, 0,
true, UR, UL, -1.0);
41 const auto FLR_flipped = flux.getFlux(i_side, 0,
false, UR, UL, -1.0);
43 flux_regions.insert(flux.getLastRegionIndex());
45 for (
unsigned int i = 0; i < FLR.size(); ++i)
47 REL_TEST(FLR[i], FLR_flipped[i], REL_TOL_CONSISTENCY);
48 REL_TEST(FRL[i], FRL_flipped[i], REL_TOL_CONSISTENCY);
53 EXPECT_TRUE(flux_regions.size() == flux.getNumberOfRegions());
61 unsigned int i_side = 0;
63 for (
const auto & W : W_list)
70 const auto & FL_computed_pos = flux.getFlux(i_side, 0,
true, U, U, 1.0);
71 const auto & FR_computed_pos = flux.getFlux(i_side, 0,
false, U, U, 1.0);
74 const auto & FL_computed_neg = flux.getFlux(i_side, 0,
true, U, U, -1.0);
75 const auto & FR_computed_neg = flux.getFlux(i_side, 0,
false, U, U, -1.0);
78 for (
unsigned int i = 0; i < FL_computed_pos.size(); ++i)
80 REL_TEST(FL_computed_pos[i], F_expected[i], REL_TOL_CONSISTENCY);
81 REL_TEST(FR_computed_pos[i], F_expected[i], REL_TOL_CONSISTENCY);
83 REL_TEST(FL_computed_neg[i], F_expected[i], REL_TOL_CONSISTENCY);
84 REL_TEST(FR_computed_neg[i], F_expected[i], REL_TOL_CONSISTENCY);