Changeset 6233
- Timestamp:
- 10/11/10 10:40:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Tria.cpp
r6232 r6233 687 687 int i,j; 688 688 int partition[NUMVERTICES]; 689 int offset[NUMVERTICES]; 689 int offsetsid[NUMVERTICES]; 690 int offsetdof[NUMVERTICES]; 690 691 double area; 691 692 double mean; … … 696 697 697 698 /*Figure out the average for this element: */ 698 this->GetSidList(&offset[0]); 699 this->GetSidList(&offsetsid[0]); 700 this->GetDofList1(&offsetdof[0]); 699 701 mean=0; 700 702 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]]; 703 705 } 704 706
Note:
See TracChangeset
for help on using the changeset viewer.