Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed May 17, 2024
1 parent 67196dd commit 6fd4e0a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions core/src/impl/Cabana_CartesianGrid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,20 +134,6 @@ class CartesianGrid
kc = ( kc == _nx[2] ) ? kc - 1 : kc;
}

// Given a position get the ijk indices of the cell in which
KOKKOS_INLINE_FUNCTION void
locatePoint( const Kokkos::Array<Real, num_space_dim> p,
Kokkos::Array<int, num_space_dim>& c ) const
{
// Since we use a floor function a point on the outer boundary
// will be found in the next cell, causing an out of bounds error
for ( std::size_t d = 0; d < num_space_dim; ++d )
{
c[d] = cellsBetween( p[d], _min[d], _rdx[d] );
c[d] = ( c[d] == _nx[d] ) ? c[d] - 1 : c[d];
}
}

// Given a position get the ijk indices of the cell in which
template <std::size_t NSD = num_space_dim>
KOKKOS_INLINE_FUNCTION std::enable_if_t<2 == NSD, void>
Expand Down

0 comments on commit 6fd4e0a

Please sign in to comment.