Skip to content

Commit

Permalink
Remove rank in discrete spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Oct 25, 2022
1 parent ed1126f commit 1823b04
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 20 deletions.
5 changes: 0 additions & 5 deletions include/ddc/non_uniform_point_sampling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ class NonUniformPointSampling
using discrete_vector_type = DiscreteVector<NonUniformPointSampling>;

public:
static constexpr std::size_t rank()
{
return 1;
}

template <class MemorySpace>
class Impl
{
Expand Down
5 changes: 0 additions & 5 deletions include/ddc/uniform_point_sampling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ class UniformPointSampling
using discrete_vector_type = DiscreteVector<UniformPointSampling>;

public:
static constexpr std::size_t rank()
{
return 1;
}

template <class MemorySpace>
class Impl
{
Expand Down
5 changes: 0 additions & 5 deletions tests/non_uniform_point_sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ Coordinate<DimX> constexpr point_rx = Coordinate<DimX>(0.3);

} // namespace

TEST(NonUniformPointSamplingTest, Rank)
{
EXPECT_EQ(DDimX::rank(), 1);
}

TEST(NonUniformPointSamplingTest, ListConstructor)
{
DDimX::Impl<Kokkos::HostSpace> ddim_x(VALUES);
Expand Down
5 changes: 0 additions & 5 deletions tests/uniform_point_sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ class UniformPointSamplingTest : public ::testing::Test
Coordinate<DimX> point_rx = Coordinate<DimX>(0.);
};

TEST_F(UniformPointSamplingTest, Rank)
{
EXPECT_EQ(DDimX::rank(), 1);
}

TEST_F(UniformPointSamplingTest, Constructor)
{
DDimX::Impl<Kokkos::HostSpace> ddim_x(origin, step);
Expand Down

0 comments on commit 1823b04

Please sign in to comment.