Changeset 12571
- Timestamp:
- 06/27/12 14:12:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/ModelProcessorx/NodesPartitioning.cpp
r12529 r12571 125 125 * we must clone the nodes on this partition so that the loads (Numericalflux) 126 126 * will have access to their properties (dofs,...)*/ 127 if(my_elements[ (int)e1] && !xIsNan<IssmDouble>(e2) && !my_elements[(int)e2]){127 if(my_elements[reCast<int>(e1)] && !xIsNan<IssmDouble>(e2) && !my_elements[reCast<int>(e2)]){ 128 128 129 129 /*1: Get vertices ids*/ 130 i1= (int)edges[4*i+0];131 i2= (int)edges[4*i+1];130 i1=reCast<int>(edges[4*i+0]); 131 i2=reCast<int>(edges[4*i+1]); 132 132 133 133 /*2: Get the column where these ids are located in the index*/ 134 134 pos=UNDEF; 135 135 for(j=0;j<3;j++){ 136 if ( (int)elements[3*(int)e2+j]==i1) pos=j;136 if (reCast<int>(elements[3*(reCast<int>(e2))+j])==i1) pos=j; 137 137 } 138 138 … … 140 140 * we can now create the corresponding nodes:*/ 141 141 if (pos==0){ 142 my_nodes[ (int)e2*3+0]=true;143 my_nodes[ (int)e2*3+2]=true;142 my_nodes[reCast<int>(e2)*3+0]=true; 143 my_nodes[reCast<int>(e2)*3+2]=true; 144 144 } 145 145 else if(pos==1){ 146 my_nodes[ (int)e2*3+1]=true;147 my_nodes[ (int)e2*3+0]=true;146 my_nodes[reCast<int>(e2)*3+1]=true; 147 my_nodes[reCast<int>(e2)*3+0]=true; 148 148 } 149 149 else if (pos==2){ 150 my_nodes[ (int)e2*3+2]=true;151 my_nodes[ (int)e2*3+1]=true;150 my_nodes[reCast<int>(e2)*3+2]=true; 151 my_nodes[reCast<int>(e2)*3+1]=true; 152 152 } 153 153 else{
Note:
See TracChangeset
for help on using the changeset viewer.