Commit 72d7780b authored by incardon's avatar incardon

Fixing test to be general

parent c1c285ad
......@@ -373,22 +373,23 @@ BOOST_AUTO_TEST_CASE( CartDecomposition_check_cross_consistency_between_proc_idb
const openfpm::vector<std::pair<size_t, size_t>> & vp_id1 = dec.template ghost_processorID_pair<typename CartDecomposition<3, double>::lc_processor_id, typename CartDecomposition<3, double>::shift_id>(p1, UNIQUE);
const openfpm::vector<std::pair<size_t, size_t>> & vp_id2 = dec.template ghost_processorID_pair<typename CartDecomposition<3, double>::lc_processor_id, typename CartDecomposition<3, double>::shift_id>(p2, UNIQUE);
BOOST_REQUIRE_EQUAL(proc1,1ul);
BOOST_REQUIRE_EQUAL(proc2,2ul);
if (vcl.rank() == 2)
if (proc1 != proc2)
{
BOOST_REQUIRE(vp_id2.size() != 0);
BOOST_REQUIRE(vp_id1.size() == 0);
}
if (vcl.rank() == proc2)
{
BOOST_REQUIRE(vp_id2.size() != 0);
BOOST_REQUIRE(vp_id1.size() == 0);
}
if (vcl.rank() == 1)
{
BOOST_REQUIRE(vp_id2.size() == 0 );
BOOST_REQUIRE(vp_id1.size() != 0 );
if (vcl.rank() == proc1)
{
BOOST_REQUIRE(vp_id2.size() == 0 );
BOOST_REQUIRE(vp_id1.size() != 0 );
}
}
}
BOOST_AUTO_TEST_CASE( CartDecomposition_non_periodic_test_dist_grid)
{
// Vcluster
......
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