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

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

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

revision 3602 by jfenwick, Mon Oct 11 01:48:14 2010 UTC revision 3603 by caltinay, Mon Sep 19 03:42:53 2011 UTC
# Line 70  void Finley_Mesh_optimizeDOFDistribution Line 70  void Finley_Mesh_optimizeDOFDistribution
70       size_t mpiSize_size;       size_t mpiSize_size;
71       index_t* partition=NULL;       index_t* partition=NULL;
72       Paso_Pattern *pattern=NULL;       Paso_Pattern *pattern=NULL;
73       Esys_MPI_rank myRank,dest,source,current_rank, rank;       Esys_MPI_rank myRank,current_rank, rank;
74       Finley_IndexList* index_list=NULL;       Finley_IndexList* index_list=NULL;
75       float *xyz=NULL;       float *xyz=NULL;
76       int c;       int c;
77            
78       #ifdef ESYS_MPI       #ifdef ESYS_MPI
79         Esys_MPI_rank dest, source;
80       MPI_Status status;       MPI_Status status;
81       #endif       #endif
82    
# Line 234  void Finley_Mesh_optimizeDOFDistribution Line 235  void Finley_Mesh_optimizeDOFDistribution
235             TMPMEMFREE(recvbuf);             TMPMEMFREE(recvbuf);
236    
237             /* now the overlap needs to be created by sending the partition around*/             /* now the overlap needs to be created by sending the partition around*/
238    #ifdef ESYS_MPI
239             dest=Esys_MPIInfo_mod(mpiSize, myRank + 1);             dest=Esys_MPIInfo_mod(mpiSize, myRank + 1);
240             source=Esys_MPIInfo_mod(mpiSize, myRank - 1);             source=Esys_MPIInfo_mod(mpiSize, myRank - 1);
241    #endif
242             current_rank=myRank;             current_rank=myRank;
243             #pragma omp parallel for private(i)             #pragma omp parallel for private(i)
244             for (i=0;i<in->Nodes->numNodes;++i) setNewDOFId[i]=TRUE;             for (i=0;i<in->Nodes->numNodes;++i) setNewDOFId[i]=TRUE;

Legend:
Removed from v.3602  
changed lines
  Added in v.3603

  ViewVC Help
Powered by ViewVC 1.1.26