Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/pcms/localization/point_search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ Kokkos::View<GridPointSearch3D::Result*> GridPointSearch3D::operator()(

auto nearest_triangle = candidates_begin;
auto dimensionality = GridPointSearch3D::Result::Dimensionality::EDGE;
Omega_h::Real distance_to_nearest{INFINITY};
Omega_h::Vector<DIM + 1> parametric_coords_to_nearest;
// create array that's size of number of candidates x num coords to store
// parametric inversion
Expand Down
7 changes: 0 additions & 7 deletions src/pcms/transfer/load_vector_integrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,6 @@ namespace pcms
const int old_n = poly.nverts;
int new_n = 0;

int old2new[r3d::MaxVerts<2>::value];
for (int i = 0; i < old_n; ++i) {
old2new[i] = -1;
}

// geometric deupliactes filtering
for (int i = 0; i < old_n; ++i) {
const auto& pi = poly.verts[i].pos;
Expand All @@ -158,12 +153,10 @@ namespace pcms
if (Kokkos::fabs(pi[0] - pj[0]) < tol &&
Kokkos::fabs(pi[1] - pj[1]) < tol) {
dup = true;
old2new[i] = j;
break;
}
}
if (!dup) {
old2new[i] = new_n;
poly.verts[new_n] = poly.verts[i];
++new_n;
}
Expand Down
Loading