/[escript]/trunk/finley/src/NodeFile_createDenseLabelings.c
ViewVC logotype

Diff of /trunk/finley/src/NodeFile_createDenseLabelings.c

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

revision 1749 by gross, Wed Sep 3 07:25:01 2008 UTC revision 1766 by gross, Mon Sep 8 02:51:14 2008 UTC
# Line 101  dim_t Finley_NodeFile_createDenseDOFLabe Line 101  dim_t Finley_NodeFile_createDenseDOFLabe
101                 new_numGlobalDOFs=loc_offsets[0];                 new_numGlobalDOFs=loc_offsets[0];
102                 loc_offsets[0]=0;                 loc_offsets[0]=0;
103              #endif              #endif
104              #pragma omp parallel for private(n) schedule(static)              #pragma omp parallel
105              for (n=0; n<myDOFs; ++n) DOF_buffer[n]+=loc_offsets[in->MPIInfo->rank];              {
106              /* now entries are collected from the buffer again by sending the entries around in a circle */                  #pragma omp for private(n) schedule(static)
107              #pragma omp parallel for private(n) schedule(static)                  for (n=0; n<myDOFs; ++n) DOF_buffer[n]+=loc_offsets[in->MPIInfo->rank];
108              for (n=0; n<in->numNodes; ++n) set_new_DOF[n]=TRUE;                  /* now entries are collected from the buffer again by sending the entries around in a circle */
109                    #pragma omp for private(n) schedule(static)
110                    for (n=0; n<in->numNodes; ++n) set_new_DOF[n]=TRUE;
111                }
112              dest=Paso_MPIInfo_mod(in->MPIInfo->size, in->MPIInfo->rank + 1);              dest=Paso_MPIInfo_mod(in->MPIInfo->size, in->MPIInfo->rank + 1);
113              source=Paso_MPIInfo_mod(in->MPIInfo->size, in->MPIInfo->rank - 1);              source=Paso_MPIInfo_mod(in->MPIInfo->size, in->MPIInfo->rank - 1);
114              buffer_rank=in->MPIInfo->rank;              buffer_rank=in->MPIInfo->rank;
# Line 392  dim_t Finley_NodeFile_createDenseNodeLab Line 395  dim_t Finley_NodeFile_createDenseNodeLab
395         }         }
396     }     }
397     TMPMEMFREE(Node_buffer);     TMPMEMFREE(Node_buffer);
398       return globalNumNodes;
399  }  }
400    
401  dim_t Finley_NodeFile_createDenseReducedNodeLabeling(Finley_NodeFile* in,index_t* reducedNodeMask)  dim_t Finley_NodeFile_createDenseReducedNodeLabeling(Finley_NodeFile* in,index_t* reducedNodeMask)

Legend:
Removed from v.1749  
changed lines
  Added in v.1766

  ViewVC Help
Powered by ViewVC 1.1.26