Skip to content
Snippets Groups Projects
Commit 623e5024 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing getPos for grid

parent 839d659d
No related branches found
No related tags found
No related merge requests found
Pipeline #3124 failed
...@@ -100,12 +100,16 @@ BOOST_AUTO_TEST_CASE( grid_dist_id_domain_grid_unit_converter3D_test) ...@@ -100,12 +100,16 @@ BOOST_AUTO_TEST_CASE( grid_dist_id_domain_grid_unit_converter3D_test)
auto it = g_dist.getDomainIterator(); auto it = g_dist.getDomainIterator();
auto key = it.get(); auto key = it.get();
auto gkey = it.getGKey(key);
auto pos = g_dist.getPos(key); auto pos = g_dist.getPos(key);
BOOST_REQUIRE_CLOSE(pos.get(0),-0.3f,0.0001); if (gkey.get(0) == 0 && gkey.get(1) == 0 && gkey.get(2) == 0)
BOOST_REQUIRE_CLOSE(pos.get(1),-0.3f,0.0001); {
BOOST_REQUIRE_CLOSE(pos.get(2),-0.3f,0.0001); BOOST_REQUIRE_CLOSE(pos.get(0),-0.3f,0.0001);
BOOST_REQUIRE_CLOSE(pos.get(1),-0.3f,0.0001);
BOOST_REQUIRE_CLOSE(pos.get(2),-0.3f,0.0001);
}
bool check = false; bool check = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment