We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad3ed0e commit 90f4fccCopy full SHA for 90f4fcc
kratos/python/add_sparse_matrices_to_python.cpp
@@ -180,7 +180,7 @@ namespace
180
const std::size_t aux_idx = entity_pos + i_local * local_size_1 + j_local; // Position in the contributions and equation ids data
181
const int csr_index = r_idx_data[aux_idx]; // Index in the CSR matrix values vector
182
const double lhs_contribution = r_lhs_contribution_data[aux_idx]; // Scalar contribution to the left hand side
183
- r_lhs_data[csr_index] += lhs_contribution;
+ AtomicAdd(r_lhs_data[csr_index], lhs_contribution);
184
}
185
186
});
0 commit comments