Skip to content

Commit

Permalink
Re-add accidentally lost index check
Browse files Browse the repository at this point in the history
  • Loading branch information
fthaler committed Jul 24, 2024
1 parent 0a29491 commit 2e6e3e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/gridtools/fn/unstructured.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ namespace gridtools::fn {
auto const &table = host_device::at_key<Conn>(it.m_domain.m_tables);
auto new_index = get<Offset::value>(neighbor_table::neighbors(table, std::max(it.m_index, 0)));
auto shifted = it;
shifted.m_index = new_index;
shifted.m_index = it.m_index == -1 ? -1 : new_index;
return shifted;
}

Expand Down

0 comments on commit 2e6e3e0

Please sign in to comment.