Changeset 25213


Ignore:
Timestamp:
07/06/20 17:59:02 (5 years ago)
Author:
Eric.Larour
Message:

CHG: fixed bug in indexing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/IoModel.cpp

    r25210 r25213  
    17571757                                        _assert_(this->elements);
    17581758                                        for(int k=0;k<numvertices;k++){
    1759                                                 vertexsids[k] =reCast<int>(this->elements[numvertices*element->Sid()+k]); //ids for vertices are in the elements array from Matlab
    1760                                                 vertexlids[k]=this->my_vertices_lids[vertexsids[k]-1];
     1759                                                vertexsids[k] =reCast<int>(this->elements[numvertices*element->Sid()+k]-1); //ids for vertices are in the elements array from Matlab
     1760                                                vertexlids[k]=this->my_vertices_lids[vertexsids[k]];
    17611761                                        }
    17621762
Note: See TracChangeset for help on using the changeset viewer.