Skip to content

Commit

Permalink
Merge pull request #141 from streeve/fixup_profile_local
Browse files Browse the repository at this point in the history
fixup: only use local particles for output profiles
  • Loading branch information
streeve authored Oct 30, 2024
2 parents 7d3bee8 + dce2303 commit bd587d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CabanaPD_DisplacementProfile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void createOutputProfile( MPI_Comm comm, const int num_cell,
}
};
Kokkos::RangePolicy<typename memory_space::execution_space> policy(
0, x.size() );
0, particles.n_local );
Kokkos::parallel_for( "displacement_profile", policy, measure_profile );
auto count_host =
Kokkos::create_mirror_view_and_copy( Kokkos::HostSpace{}, count );
Expand Down

0 comments on commit bd587d2

Please sign in to comment.