Changeset 6233


Ignore:
Timestamp:
10/11/10 10:40:34 (14 years ago)
Author:
Eric.Larour
Message:

Minor mistake

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/Tria.cpp

    r6232 r6233  
    687687        int       i,j;
    688688        int       partition[NUMVERTICES];
    689         int       offset[NUMVERTICES];
     689        int       offsetsid[NUMVERTICES];
     690        int       offsetdof[NUMVERTICES];
    690691        double    area;
    691692        double    mean;
     
    696697
    697698        /*Figure out the average for this element: */
    698         this->GetSidList(&offset[0]);
     699        this->GetSidList(&offsetsid[0]);
     700        this->GetDofList1(&offsetdof[0]);
    699701        mean=0;
    700702        for(i=0;i<NUMVERTICES;i++){
    701                 partition[i]=(int)qmu_part[offset[i]];
    702                 mean=mean+1.0/NUMVERTICES*vertex_response[offset[i]];
     703                partition[i]=(int)qmu_part[offsetsid[i]];
     704                mean=mean+1.0/NUMVERTICES*vertex_response[offsetdof[i]];
    703705        }
    704706
Note: See TracChangeset for help on using the changeset viewer.