Commit b7a207f1 authored by incardon's avatar incardon

Fixing grid with integer ghost

parent e7888de5
openfpm_data @ 084b2597
Subproject commit f7c7b118b2abc8b1da5eff09b69a7984af94b3d0
Subproject commit 084b2597627f7a4a1bd0f41d3236e8c5bc45f57c
......@@ -558,7 +558,7 @@ p1[0]<-----+ +----> p2[0]
for (size_t i = 0 ; i < dim ; i++)
{
if (ghost.template getLow(i) >= domain.template getHigh(i) / gr.size(i) || ghost.template getHigh(i) >= domain.template getHigh(i) / gr.size(i))
if (fabs(ghost.template getLow(i)) >= ss_box.getHigh(i) || ghost.template getHigh(i) >= ss_box.getHigh(i))
{
std::cerr << "Error " << __FILE__ << ":" << __LINE__ << " : Ghost are bigger than one sub-domain" << "\n";
}
......
......@@ -535,10 +535,14 @@ void Test3D_gg(const Box<3,float> & domain, long int k, long int gk)
big_step = (big_step == 0)?1:big_step;
long int small_step = 1;
// this test is only performed when the number of processor is <= 32
if (global_v_cluster->getProcessingUnits() > 32)
return;
print_test( "Testing 3D grid k<=",k);
// 3D test
for ( ; k >= 2 ; k /= 2 )
for ( ; k >= 6 ; k /= 2 )
{
BOOST_TEST_CHECKPOINT( "Testing 3D grid ghost integer k=" << k );
......@@ -567,10 +571,6 @@ void Test3D_gg(const Box<3,float> & domain, long int k, long int gk)
for (size_t i = 0 ; i < lg.size() ; i++)
{
BOOST_REQUIRE(lg.get(i).Dbox.getLow(i) >= gk);
if ((lg.get(i).GDbox.getHigh(i) - lg.get(i).Dbox.getHigh(i)) < gk)
{
std::cout << "DIOCANE: " << gk << " " << (lg.get(i).GDbox.getHigh(i) - lg.get(i).Dbox.getHigh(i)) << "\n";
}
BOOST_REQUIRE((lg.get(i).GDbox.getHigh(i) - lg.get(i).Dbox.getHigh(i)) >= gk);
}
}
......
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