Skip to content

Commit

Permalink
Missing a return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
brryan committed Nov 7, 2024
1 parent 82353bc commit afc51fe
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/bvals/bvals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ void BoundarySwarm::SetupPersistentMPI() {
// Send particle buffers across meshblocks. If different MPI ranks, use MPI, if same rank,
// do a deep copy on device.
void BoundarySwarm::Send(BoundaryCommSubset phase) {
// printf("%s:%i\n", __FILE__, __LINE__);
std::shared_ptr<MeshBlock> pmb = GetBlockPointer();
// Fence to make sure buffers are loaded before sending
pmb->exec_space.fence();
Expand Down Expand Up @@ -162,7 +161,6 @@ void BoundarySwarm::Receive(BoundaryCommSubset phase) {
}
}
#endif
// printf("%s:%i\n", __FILE__, __LINE__);
}

// BoundarySwarms constructor (the first object constructed inside the MeshBlock()
Expand Down
2 changes: 0 additions & 2 deletions src/interface/swarm_comms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,6 @@ void Swarm::UnloadBuffers_() {
auto &bdvar = vbswarm->bd_var_;
const int nbmax = vbswarm->bd_var_.nbmax;

return; // debug

if (total_received_particles_ > 0) {
auto newParticlesContext = AddEmptyParticles(total_received_particles_);

Expand Down
4 changes: 0 additions & 4 deletions src/utils/sort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ KOKKOS_INLINE_FUNCTION int upper_bound(const T &arr, Real val) {
template <class Key, class KeyComparator>
void sort(ParArray1D<Key> data, KeyComparator comparator, size_t min_idx,
size_t max_idx) {
Kokkos::fence();
printf("%s:%i\n", __FILE__, __LINE__);
PARTHENON_DEBUG_REQUIRE(min_idx < data.extent(0), "Invalid minimum sort index!");
PARTHENON_DEBUG_REQUIRE(max_idx < data.extent(0), "Invalid maximum sort index!");
#if defined(KOKKOS_ENABLE_CUDA)
Expand Down Expand Up @@ -92,8 +90,6 @@ void sort(ParArray1D<Key> data, KeyComparator comparator, size_t min_idx,
"touch by opening an issue on the Parthenon GitHub.");
}
#endif // KOKKOS_ENABLE_CUDA
Kokkos::fence();
printf("%s:%i\n", __FILE__, __LINE__);
}

template <class Key>
Expand Down

0 comments on commit afc51fe

Please sign in to comment.