Ignore:
Timestamp:
07/03/13 16:46:48 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: dim can now be retrieved directly in iomodel

File:
1 edited

Legend:

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

    r15000 r15423  
    5959         * ids. */
    6060
    61         int i,j;
    62         int    dim;
    63 
    6461        /*output: */
    6562        bool*   my_nodes=NULL;
    6663
    67         int  i1,i2;
     64        int  i,i1,i2;
    6865        int  cols;
    6966        int  e1,e2;
     
    7269        int *edges         = NULL;
    7370        int *elements      = NULL;
    74 
    75         /*Fetch parameters: */
    76         iomodel->Constant(&dim,MeshDimensionEnum);
    7771
    7872        /*Build discontinuous node partitioning
     
    8983
    9084        /*First: add all the nodes of all the elements belonging to this cpu*/
    91         if (dim==2){
     85        if (iomodel->dim==2){
    9286                for (i=0;i<numberofelements;i++){
    9387                        if (my_elements[i]){
     
    129123                        /*2: Get the column where these ids are located in the index*/
    130124                        pos=UNDEF;
    131                         for(j=0;j<3;j++){
     125                        for(int j=0;j<3;j++){
    132126                                if (elements[3*e2+j]==i1) pos=j;
    133127                        }
Note: See TracChangeset for help on using the changeset viewer.