/[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 1811 by ksteube, Thu Sep 25 23:11:13 2008 UTC revision 1981 by jfenwick, Thu Nov 6 05:27:33 2008 UTC
# Line 278  dim_t Finley_NodeFile_createDenseReduced Line 278  dim_t Finley_NodeFile_createDenseReduced
278  dim_t Finley_NodeFile_createDenseNodeLabeling(Finley_NodeFile* in, index_t* node_distribution, const index_t* dof_distribution)  dim_t Finley_NodeFile_createDenseNodeLabeling(Finley_NodeFile* in, index_t* node_distribution, const index_t* dof_distribution)
279  {  {
280    index_t myFirstDOF, myLastDOF, max_id, min_id, loc_max_id, loc_min_id, dof, id, itmp, nodeID_0, nodeID_1, dof_0, dof_1, *Node_buffer=NULL;    index_t myFirstDOF, myLastDOF, max_id, min_id, loc_max_id, loc_min_id, dof, id, itmp, nodeID_0, nodeID_1, dof_0, dof_1, *Node_buffer=NULL;
281    dim_t n, my_buffer_len, buffer_len, globalNumNodes, myNewNumNodes;    dim_t n, my_buffer_len, buffer_len, globalNumNodes=0, myNewNumNodes;
282    Paso_MPI_rank p, dest, source, buffer_rank;    Paso_MPI_rank p, dest, source, buffer_rank;
283    const index_t unset_nodeID=-1, set_nodeID=1;    const index_t unset_nodeID=-1, set_nodeID=1;
284    const dim_t header_len=2;    const dim_t header_len=2;
# Line 289  dim_t Finley_NodeFile_createDenseNodeLab Line 289  dim_t Finley_NodeFile_createDenseNodeLab
289    
290    /* find the range of node ids controled by me */    /* find the range of node ids controled by me */
291    
292    myFirstDOF=dof_distribution[in->MPIInfo->rank];    myFirstDOF=dof_distribution[myRank];
293    myLastDOF=dof_distribution[in->MPIInfo->rank+1];    myLastDOF=dof_distribution[myRank+1];
294    max_id=-INDEX_T_MAX;    max_id=-INDEX_T_MAX;
295    min_id=INDEX_T_MAX;    min_id=INDEX_T_MAX;
296    #pragma omp parallel private(loc_max_id,loc_min_id)    #pragma omp parallel private(loc_max_id,loc_min_id)

Legend:
Removed from v.1811  
changed lines
  Added in v.1981

  ViewVC Help
Powered by ViewVC 1.1.26