/[escript]/trunk/esysUtils/src/Esys_MPI.c
ViewVC logotype

Diff of /trunk/esysUtils/src/Esys_MPI.c

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

revision 3488 by jfenwick, Fri Dec 3 06:07:08 2010 UTC revision 3489 by caltinay, Wed Mar 30 00:46:04 2011 UTC
# Line 100  void Esys_MPIInfo_Split( Esys_MPIInfo *m Line 100  void Esys_MPIInfo_Split( Esys_MPIInfo *m
100    
101  dim_t Esys_MPIInfo_setDistribution(Esys_MPIInfo* mpi_info ,index_t min_id,index_t max_id,index_t* distribution) {  dim_t Esys_MPIInfo_setDistribution(Esys_MPIInfo* mpi_info ,index_t min_id,index_t max_id,index_t* distribution) {
102     int rest=0, p;     int rest=0, p;
    dim_t out;  
103     int s=mpi_info->size;     int s=mpi_info->size;
104     dim_t N=max_id-min_id+1;     dim_t N=max_id-min_id+1;
105     if (N>0) {     if (N>0) {
# Line 109  dim_t Esys_MPIInfo_setDistribution(Esys_ Line 108  dim_t Esys_MPIInfo_setDistribution(Esys_
108        for (p=0; p<s; ++p) {        for (p=0; p<s; ++p) {
109           if (p<rest) {           if (p<rest) {
110               distribution[p]=min_id+(local_N+1)*p;               distribution[p]=min_id+(local_N+1)*p;
              out=local_N+1;  
111           } else {           } else {
112               distribution[p]=min_id+rest+local_N*p;               distribution[p]=min_id+rest+local_N*p;
113           }           }

Legend:
Removed from v.3488  
changed lines
  Added in v.3489

  ViewVC Help
Powered by ViewVC 1.1.26