Skip to content

Commit

Permalink
turn off stokes test
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Oct 12, 2017
1 parent a5972a9 commit dc2330a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if (Aboria_RUN_TESTS)
DiffusionAroundSpheres
RbfInterpolationTest
RbfPdeTest
RbfStokesTest
#RbfStokesTest
H2Test
)

Expand Down
25 changes: 25 additions & 0 deletions tests/iterators.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,31 @@ class IteratorsTest: public CxxTest::TestSuite {
std::cout << std::endl;
TS_ASSERT_EQUALS(count,1);

count = 0;
for (auto& p: particles.get_query().get_buckets_near_point<2>(vdouble2(-0.001,0.001),2.0)) {
++count;
std::cout << p;
}
std::cout << std::endl;
TS_ASSERT_EQUALS(count,100);

count = 0;
for (auto& p: particles.get_query().get_buckets_near_point<2>(vdouble2(-0.001,0.001),0.01)) {
++count;
std::cout << p;
}
std::cout << std::endl;
TS_ASSERT_EQUALS(count,1);

count = 0;
for (auto& p: particles.get_query().get_buckets_near_point<2>(vdouble2(1.001,1.001),0.01)) {
++count;
std::cout << p;
}
std::cout << std::endl;
TS_ASSERT_EQUALS(count,1);




}
Expand Down
1 change: 0 additions & 1 deletion tests/rbf_stokes.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ class RbfStokesTest : public CxxTest::TestSuite {
return vdouble2(120*x[0]*x[1] , 60*std::pow(x[0],2) - 60*std::pow(x[1],2));
};


ABORIA_VARIABLE(velocity_u,double,"velocity u")
ABORIA_VARIABLE(velocity_v,double,"velocity v")
ABORIA_VARIABLE(pressure_x,double,"pressure gradient x")
Expand Down

0 comments on commit dc2330a

Please sign in to comment.