MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / verify_host_values

Function verify_host_values

Tests/Base/TrackedVector/main.cpp:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void verify_host_values (TVec const & v, std::vector<int> const & expected)
29{
30 auto const & host = v.host_const();
31 AMREX_ALWAYS_ASSERT(host.size() == expected.size());
32 for (std::size_t i = 0; i < expected.size(); ++i) {
33 AMREX_ALWAYS_ASSERT(host[i] == expected[i]);
34 }
35}
36
37void test_copy_without_amrex_session (TVec const & src, std::vector<int> const & expected)
38{

Callers 1

Calls 1

sizeMethod · 0.45

Tested by 1