Commit 7d236571 authored by Chuanren Wu's avatar Chuanren Wu

introduce realistic length

parent aab2ebfc
......@@ -1263,8 +1263,13 @@ TEST(BC, ComplexSystem)
c.minus(459);
cs.push_back(c);
}
std::vector<double> vl(466);
std::generate(vl.begin(), vl.end(), [](){ return 1000.0;} );
std::vector<double> vl = {0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00471061, 0.00471061, 0.0504576, 0.2, 0.0382778, 0.2, 0.0504576, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00471061, 0.00471061, 0.0382778, 0.00471061, 0.076, 0.00471061, 0.15, 0.00235614, 0.00235614, 0.012, 0.00471061, 0.0435147, 0.00471061, 0.012, 0.00235614, 0.00235614, 0.0541622, 0.0416756, 0.0541622, 0.00471061, 0.00471061, 0.0359592, 0.00471061, 0.00471061, 0.0359592, 0.00471061, 0.00471061, 0.0342018, 0.0435147, 0.00471061, 0.00471061, 0.0359592, 0.00471061, 0.00471061, 0.0359592, 0.00471061, 0.00471061, 0.0342018, 0.0182018, 0.00424264, 0.00235614, 0.00235614, 0.00471061, 0.00471061, 0.00235614, 0.00235614, 0.00424264, 0.0182018, 0.00471061, 0.00471061, 0.00471061, 0.00775736, 0.01, 0.00471061, 0.00471061, 0.006, 0.01, 0.00471061, 0.00775736, 0.00471061, 0.006, 0.00471061, 0.0182018, 0.00424264, 0.00235614, 0.00235614, 0.00471061, 0.00471061, 0.00235614, 0.00235614, 0.00424264, 0.0182018, 0.00471061, 0.00471061, 0.00471061, 0.00775736, 0.01, 0.00471061, 0.00471061, 0.006, 0.01, 0.00471061, 0.00775736, 0.00471061, 0.006, 0.00471061, 0.0182018, 0.00424264, 0.00471061, 0.00471061, 0.00471061, 0.00471061, 0.00424264, 0.0182018, 0.00471061, 0.00471061, 0.012, 0.01, 0.00471061, 0.00471061, 0.006, 0.01, 0.00471061, 0.012, 0.006, 0.00471061, 0.02, 0.02, 0.0209174, 0.0209174, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00471061, 0.00471061, 0.0504576, 0.2, 0.0382778, 0.2, 0.0504576, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00471061, 0.00471061, 0.0382778, 0.00471061, 0.076, 0.00471061, 0.15, 0.00235614, 0.00235614, 0.012, 0.00471061, 0.0435147, 0.00471061, 0.012, 0.00235614, 0.00235614, 0.0541622, 0.0416756, 0.0541622, 0.00471061, 0.00471061, 0.0359592, 0.00471061, 0.00471061, 0.0359592, 0.00471061, 0.00471061, 0.0342018, 0.0435147, 0.00471061, 0.00471061, 0.0359592, 0.00471061, 0.00471061, 0.0359592, 0.00471061, 0.00471061, 0.0342018, 0.0182018, 0.00424264, 0.00235614, 0.00235614, 0.00471061, 0.00471061, 0.00235614, 0.00235614, 0.00424264, 0.0182018, 0.00471061, 0.00471061, 0.00471061, 0.00775736, 0.01, 0.00471061, 0.00471061, 0.006, 0.01, 0.00471061, 0.00775736, 0.00471061, 0.006, 0.00471061, 0.0182018, 0.00424264, 0.00235614, 0.00235614, 0.00471061, 0.00471061, 0.00235614, 0.00235614, 0.00424264, 0.0182018, 0.00471061, 0.00471061, 0.00471061, 0.00775736, 0.01, 0.00471061, 0.00471061, 0.006, 0.01, 0.00471061, 0.00775736, 0.00471061, 0.006, 0.00471061, 0.0182018, 0.00424264, 0.00471061, 0.00471061, 0.00471061, 0.00471061, 0.00424264, 0.0182018, 0.00471061, 0.00471061, 0.012, 0.01, 0.00471061, 0.00471061, 0.006, 0.01, 0.00471061, 0.012, 0.006, 0.00471061, 0.02, 0.02, 0.0209174, 0.0209174, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00471061, 0.00471061, 0.0504576, 0.2, 0.0382778, 0.2, 0.0504576, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00235614, 0.00235614, 0.016, 0.00471061, 0.0199592, 0.00471061, 0.00471061, 0.0382778, 0.00471061, 0.076, 0.00471061, 0.15, 0.00235614, 0.00235614, 0.012, 0.00471061, 0.0435147, 0.00471061, 0.012, 0.00235614, 0.00235614, 0.0541622, 0.0416756, 0.0541622, 0.00471061, 0.00471061, 0.0359592, 0.00471061, 0.00471061, 0.0359592, 0.00471061, 0.00471061, 0.0342018, 0.0435147, 0.00471061, 0.00471061, 0.0359592, 0.00471061, 0.00471061, 0.0359592, 0.00471061, 0.00471061, 0.0342018, 0.0182018, 0.00424264, 0.00235614, 0.00235614, 0.00471061, 0.00471061, 0.00235614, 0.00235614, 0.00424264, 0.0182018, 0.00471061, 0.00471061, 0.00471061, 0.00775736, 0.01, 0.00471061, 0.00471061, 0.006, 0.01, 0.00471061, 0.00775736, 0.00471061, 0.006, 0.00471061, 0.0182018, 0.00424264, 0.00235614, 0.00235614, 0.00471061, 0.00471061, 0.00235614, 0.00235614, 0.00424264, 0.0182018, 0.00471061, 0.00471061, 0.00471061, 0.00775736, 0.01, 0.00471061, 0.00471061, 0.006, 0.01, 0.00471061, 0.00775736, 0.00471061, 0.006, 0.00471061, 0.0182018, 0.00424264, 0.00471061, 0.00471061, 0.00471061, 0.00471061, 0.00424264, 0.0182018, 0.00471061, 0.00471061, 0.012, 0.01, 0.00471061, 0.00471061, 0.006, 0.01, 0.00471061, 0.012, 0.006, 0.00471061, 0.02, 0.02, 0.0209174, 0.0209174, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.0279248, 0.04, 0.10466, 0.10466, 0.10466, 0.10466, 0.10466, 0.10466};
for (auto &i : vl) {
i *= 100000.0;
}
// std::vector<double> vl(466);
// std::generate(vl.begin(), vl.end(), [](){ return 1000.0;} );
auto v = discretizeImpl(vl, cs);
ASSERT_NE(0, v.size());
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment