Skip to content

Commit

Permalink
fix copy range in exchange_externals
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoessbauer committed Jun 24, 2017
1 parent 5a9b41d commit aae1be7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpccg/src_dash_coarray/exchange_externals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ using std::endl;
#include <cstdio>
#include <libdash.h>
#include "exchange_externals.hpp"
#undef DEBUG

void exchange_externals(HPC_Sparse_Matrix * A, const double *x)
{
// Extract Matrix pieces
Expand Down Expand Up @@ -69,7 +69,7 @@ void exchange_externals(HPC_Sparse_Matrix * A, const double *x)
int n_send = send_length[i];
int neighbor = neighbors[i];
int offset_at_neighbor = A->offset[i];
dash::copy_async(send_buffer, send_buffer + n_send + 1,
dash::copy_async(send_buffer, send_buffer + n_send,
narray(neighbor).begin() + A->offset[i]);
send_buffer += n_send;
}
Expand Down

0 comments on commit aae1be7

Please sign in to comment.