Changeset 12571


Ignore:
Timestamp:
06/27/12 14:12:42 (13 years ago)
Author:
utke
Message:

reCast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/NodesPartitioning.cpp

    r12529 r12571  
    125125                 * we must clone the nodes on this partition so that the loads (Numericalflux)
    126126                 * 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)]){
    128128
    129129                        /*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]);
    132132
    133133                        /*2: Get the column where these ids are located in the index*/
    134134                        pos=UNDEF;
    135135                        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;
    137137                        }
    138138
     
    140140                         * we can now create the corresponding nodes:*/
    141141                        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;
    144144                        }
    145145                        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;
    148148                        }
    149149                        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;
    152152                        }
    153153                        else{
Note: See TracChangeset for help on using the changeset viewer.