/[escript]/trunk/paso/src/AMG_Interpolation.cpp
ViewVC logotype

Diff of /trunk/paso/src/AMG_Interpolation.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3828 by lgao, Wed Feb 15 03:27:58 2012 UTC revision 3829 by lgao, Wed Feb 15 03:33:08 2012 UTC
# Line 442  void Paso_Preconditioner_AMG_CopyRemoteD Line 442  void Paso_Preconditioner_AMG_CopyRemoteD
442  {  {
443    Paso_SharedComponents *send=NULL, *recv=NULL;    Paso_SharedComponents *send=NULL, *recv=NULL;
444    index_t send_neighbors, recv_neighbors, send_rows, recv_rows;    index_t send_neighbors, recv_neighbors, send_rows, recv_rows;
445    index_t i, j, p, m, n, rank, size, offset;    index_t i, j, p, m, n, rank, size;
446    index_t *send_degree=NULL, *recv_ptr=NULL, *recv_idx=NULL;    index_t *send_degree=NULL, *recv_ptr=NULL, *recv_idx=NULL;
447    index_t *ptr=*p_ptr, *idx=*p_idx;    index_t *ptr=*p_ptr, *idx=*p_idx;
448    double  *val=*p_val, *recv_val=NULL;    double  *val=*p_val, *recv_val=NULL;
# Line 455  void Paso_Preconditioner_AMG_CopyRemoteD Line 455  void Paso_Preconditioner_AMG_CopyRemoteD
455    recv_neighbors = recv->numNeighbors;    recv_neighbors = recv->numNeighbors;
456    send_rows = P->col_coupleBlock->numCols;    send_rows = P->col_coupleBlock->numCols;
457    recv_rows = recv->offsetInShared[recv_neighbors];    recv_rows = recv->offsetInShared[recv_neighbors];
   offset = P->col_distribution->first_component[rank];  
458    
459    send_degree = TMPMEMALLOC(send_rows, index_t);    send_degree = TMPMEMALLOC(send_rows, index_t);
460    recv_ptr = MEMALLOC(recv_rows + 1, index_t);    recv_ptr = MEMALLOC(recv_rows + 1, index_t);

Legend:
Removed from v.3828  
changed lines
  Added in v.3829

  ViewVC Help
Powered by ViewVC 1.1.26