Skip to content

Commit

Permalink
thrust check for coordinate map initializations (issue #357)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischoy committed May 26, 2021
1 parent 92f24db commit 2eb5d28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coordinate_map_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ struct insert_and_map_functor<coordinate_type, coordinate_field_type,
LOG_DEBUG("mapping size:", map_inverse_map.first.size());

// insert moves map
manager.insert(map_key, map);
THRUST_CHECK(manager.insert(map_key, map));

auto const &mapping = map_inverse_map.first;
auto const &inverse_mapping = map_inverse_map.second;
Expand Down Expand Up @@ -117,7 +117,7 @@ struct insert_field_functor<
auto map = CoordinateFieldMapCPU<coordinate_field_type, coordinate_type,
std::allocator>(N, coordinate_size,
map_key.first);
map.insert(p_coordinate, p_coordinate + N * coordinate_size);
THRUST_CHECK(map.insert(p_coordinate, p_coordinate + N * coordinate_size));

LOG_DEBUG("insert map with tensor_stride", map_key.first);
manager.insert_field_map(map_key, map);
Expand Down

0 comments on commit 2eb5d28

Please sign in to comment.