Changeset 17487
- Timestamp:
- 03/19/14 20:29:19 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/ModelProcessorx/ElementsAndVerticesPartitioning.cpp
r17472 r17487 17 17 void ElementsAndVerticesPartitioning(bool** pmy_elements, int** pmy_vertices, IoModel* iomodel){ 18 18 19 int i ;19 int i,j; 20 20 21 21 const int RIFTINFOSIZE = 12; … … 102 102 103 103 /*Start figuring out, out of the partition, which elements belong to this cpu: */ 104 for 104 for(i=0;i<iomodel->numberofelements;i++){ 105 105 106 106 /*!All elements have been partitioned above, only deal with elements for this cpu: */ 107 107 if(my_rank==epart[i]){ 108 109 108 my_elements[i]=true; 110 111 109 /*Now that we are here, we can also start building the list of vertices belonging to this cpu partition: we use 112 110 *the element index to do this. For each element n, we know index[n][0:2] holds the indices (matlab indexing) 113 111 into the vertices coordinates. If we start plugging 1 into my_vertices for each index[n][i] (i=0:2), then my_vertices 114 112 will hold which vertices belong to this partition*/ 115 my_vertices[iomodel->elements[elements_width*i+0]-1]=1; 116 my_vertices[iomodel->elements[elements_width*i+1]-1]=1; 117 my_vertices[iomodel->elements[elements_width*i+2]-1]=1; 118 119 if(elements_width==6){ 120 my_vertices[iomodel->elements[elements_width*i+3]-1]=1; 121 my_vertices[iomodel->elements[elements_width*i+4]-1]=1; 122 my_vertices[iomodel->elements[elements_width*i+5]-1]=1; 113 for(j=0;j<elements_width;j++){ 114 my_vertices[iomodel->elements[elements_width*i+j]-1]=1; 123 115 } 124 116 }
Note:
See TracChangeset
for help on using the changeset viewer.