Changeset 3475


Ignore:
Timestamp:
04/08/10 14:28:59 (15 years ago)
Author:
Eric.Larour
Message:

Too restrictive to check on enums: this is now object oriented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/DataSet/DataSet.cpp

    r3473 r3475  
    732732        for ( object=objects.begin() ; object < objects.end(); object++ ){
    733733
    734                 /*Call echo on object: */
    735                 if((*object)->Enum()==NodeEnum() || (*object)->Enum()==VertexEnum()){
    736 
    737                         /*Ok, this object is a node, ask which rank it has: */
    738                         rank=(*object)->MyRank();
    739 
    740                         /*Which id does it have: */
    741                         id=(*object)->GetId();
    742 
    743                         /*Plug rank into ranks, according to id: */
    744                         ranks[id-1]=rank; //Matlab ids start at 1.
    745                 }
     734                /*Ok, this object is a node, ask which rank it has: */
     735                rank=(*object)->MyRank();
     736
     737                /*Which id does it have: */
     738                id=(*object)->GetId();
     739
     740                /*Plug rank into ranks, according to id: */
     741                ranks[id-1]=rank; //Matlab ids start at 1.
    746742        }
    747743        return;
Note: See TracChangeset for help on using the changeset viewer.