Skip to content

Commit

Permalink
Fix setBasisState.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentmr committed Apr 2, 2024
1 parent 2359274 commit cc15f3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ class StateVectorKokkosMPI final
void setBasisState(const std::size_t global_index) {
const auto index = global_2_local_index(global_index);
const auto rank = static_cast<std::size_t>(get_mpi_rank());
if (index.first == 0) {
if (index.first == rank) {
(*sv_).setBasisState(index.second);
} else {
(*sv_).initZeros();
Expand Down

0 comments on commit cc15f3d

Please sign in to comment.