Skip to content

Commit

Permalink
Fixed a bug in aggregation
Browse files Browse the repository at this point in the history
The bug only showed itself when openmp was not available
  • Loading branch information
ddemidov committed Jun 4, 2014
1 parent e6c0601 commit 624f45e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amgcl/aggr_connect.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pointwise_matrix(const spmat &A, unsigned dof_per_node) {
index_t chunk_end = std::min(nc, chunk_start + chunk_size);
#else
index_t chunk_start = 0;
index_t chunk_end = n;
index_t chunk_end = nc;
#endif

// Count number of nonzeros in block matrix.
Expand Down Expand Up @@ -209,7 +209,7 @@ pointwise_coarsening(const spmat &A, float eps_strong, unsigned dof_per_node) {
index_t chunk_end = std::min(Ap.rows, chunk_start + chunk_size);
#else
index_t chunk_start = 0;
index_t chunk_end = n;
index_t chunk_end = Ap.rows;
#endif

for(index_t ip = chunk_start, ia = ip * dof_per_node; ip < chunk_end; ++ip) {
Expand Down

0 comments on commit 624f45e

Please sign in to comment.