/[escript]/branches/arrayview_from_1695_trunk/finley/src/ElementFile_distributeByRankOfDOF.c
ViewVC logotype

Diff of /branches/arrayview_from_1695_trunk/finley/src/ElementFile_distributeByRankOfDOF.c

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

revision 1780 by jfenwick, Mon Aug 11 03:33:40 2008 UTC revision 1781 by jfenwick, Thu Sep 11 05:03:14 2008 UTC
# Line 62  void Finley_ElementFile_distributeByRank Line 62  void Finley_ElementFile_distributeByRank
62             {             {
63                 loc_proc_mask=THREAD_MEMALLOC(size,dim_t);                 loc_proc_mask=THREAD_MEMALLOC(size,dim_t);
64                 loc_send_count=THREAD_MEMALLOC(size,dim_t);                 loc_send_count=THREAD_MEMALLOC(size,dim_t);
65                 memset(loc_send_count, 0, size_size);                 memset(loc_send_count, 0, size_size);
66                 #pragma omp for private(e,j,loc_proc_mask_max) schedule(static)                 #pragma omp for private(e,j,loc_proc_mask_max) schedule(static)
67                 for (e=0;e<self->numElements;e++) {                 for (e=0;e<self->numElements;e++) {
68                    if (self->Owner[e] == myRank) {                    if (self->Owner[e] == myRank) {
# Line 94  void Finley_ElementFile_distributeByRank Line 94  void Finley_ElementFile_distributeByRank
94             #ifdef PASO_MPI             #ifdef PASO_MPI
95                MPI_Alltoall(send_count,1,MPI_INT,recv_count,1,MPI_INT,self->MPIInfo->comm);                MPI_Alltoall(send_count,1,MPI_INT,recv_count,1,MPI_INT,self->MPIInfo->comm);
96             #else             #else
97                for (p=0;p<size;++p) send_count[p]=recv_count[p];                for (p=0;p<size;++p) recv_count[p]=send_count[p];
98             #endif             #endif
99             /* get the new number of elements for this processor */             /* get the new number of elements for this processor */
100             newNumElements=0;             newNumElements=0;

Legend:
Removed from v.1780  
changed lines
  Added in v.1781

  ViewVC Help
Powered by ViewVC 1.1.26