Commit ae020f59 authored by ESTERIE Pierre's avatar ESTERIE Pierre
Browse files

Update particle unit

parent e0a0fd80
...@@ -214,6 +214,31 @@ TEST_CASE("reset-outputs", "[reset-outputs]") ...@@ -214,6 +214,31 @@ TEST_CASE("reset-outputs", "[reset-outputs]")
std::cout << '\n'; std::cout << '\n';
++it; ++it;
} }
it = std::begin(c);
for(std::size_t i{0}; i<c.size(); ++i)
{
auto proxy = proxy_type(*it);
for(std::size_t ii{0}; ii<proxy.sizeof_outputs(); ++ii)
{
proxy.outputs(ii) = 0.;
}
++it;
}
it = std::begin(c);
for(std::size_t i{0}; i<c.size(); ++i)
{
meta::repeat(
[i](auto const& e) {
using type = std::decay_t<decltype(e)>;
std::cout << e << ' ';
REQUIRE(e == 0.);
},
meta::sub_tuple(*it, typename proxy_type::range_outputs_type{}));
std::cout << '\n';
++it;
}
} }
} }
......
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