Changeset 1734


Ignore:
Timestamp:
08/17/09 17:06:16 (16 years ago)
Author:
Eric.Larour
Message:

Indexation bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/DiagnosticHoriz/CreateElementsNodesAndMaterialsDiagnosticHoriz.cpp

    r1651 r1734  
    181181        /*Deal with rifts, they have to be included into one partition only, not several: */
    182182        ModelFetchData((void**)&model->riftinfo,&model->numrifts,NULL,model_handle,"riftinfo","Matrix","Mat");
    183        
     183
    184184        for(i=0;i<model->numrifts;i++){
    185                 el1=(int)*(model->riftinfo+9*j+2)-1; //matlab indexing to c indexing
    186                 el2=(int)*(model->riftinfo+9*j+3)-1; //matlab indexing to c indexing
     185                el1=(int)*(model->riftinfo+9*i+2)-1; //matlab indexing to c indexing
     186                el2=(int)*(model->riftinfo+9*i+3)-1; //matlab indexing to c indexing
    187187                epart[el2]=epart[el1]; //ensures that this pair of elements will be in the same partition, as well as the corresponding grids;
    188188        }
Note: See TracChangeset for help on using the changeset viewer.