/[escript]/branches/doubleplusgood/finley/src/Mesh_optimizeDOFLabeling.cpp
ViewVC logotype

Diff of /branches/doubleplusgood/finley/src/Mesh_optimizeDOFLabeling.cpp

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

revision 4326 by jfenwick, Wed Feb 27 06:09:33 2013 UTC revision 4327 by jfenwick, Wed Mar 20 05:09:11 2013 UTC
# Line 49  void Finley_Mesh_optimizeDOFLabeling(Fin Line 49  void Finley_Mesh_optimizeDOFLabeling(Fin
49       len=0;       len=0;
50       for (p=0;p<mpiSize;++p) len=MAX(len,distribution[p+1]-distribution[p]);       for (p=0;p<mpiSize;++p) len=MAX(len,distribution[p+1]-distribution[p]);
51    
52       index_list=TMPMEMALLOC(myNumVertices,Finley_IndexList);       index_list=new Finley_IndexList[myNumVertices];
53       newGlobalDOFID=TMPMEMALLOC(len,index_t);       newGlobalDOFID=new index_t[len];
54       /* create the adjacency structure xadj and adjncy */       /* create the adjacency structure xadj and adjncy */
55       if (! ( Finley_checkPtr(index_list) || Finley_checkPtr(newGlobalDOFID) ) ) {       if (! ( Finley_checkPtr(index_list) || Finley_checkPtr(newGlobalDOFID) ) ) {
56           #pragma omp parallel private(i)           #pragma omp parallel private(i)
# Line 123  void Finley_Mesh_optimizeDOFLabeling(Fin Line 123  void Finley_Mesh_optimizeDOFLabeling(Fin
123                   }                   }
124                }                }
125       }       }
126       TMPMEMFREE(index_list);       delete[] index_list;
127       TMPMEMFREE(newGlobalDOFID);       delete[] newGlobalDOFID;
128  #if 0  #if 0
129  for (i=0;i<in->Nodes->numNodes;++i) printf("%d ",in->Nodes->globalDegreesOfFreedom[i]);  for (i=0;i<in->Nodes->numNodes;++i) printf("%d ",in->Nodes->globalDegreesOfFreedom[i]);
130  printf("\n");  printf("\n");

Legend:
Removed from v.4326  
changed lines
  Added in v.4327

  ViewVC Help
Powered by ViewVC 1.1.26