Changeset 9085
- Timestamp:
- 07/20/11 09:29:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Interp/PatchToVec.m
r9075 r9085 8 8 switch(Patch.interpolation(1)), 9 9 case P0Enum, 10 %vec(Patch.element)=Patch.value;11 connectivity=sparse(Patch.index(:),1,1);12 value =sparse(Patch.index(:),1,Patch.value(:));13 vec=full(value./connectivity);10 vec(Patch.element)=Patch.value; 11 %connectivity=sparse(Patch.index(:),1,1); 12 %value =sparse(Patch.index(:),1,Patch.value(:)); 13 %vec=full(value./connectivity); 14 14 case P1Enum, 15 15 connectivity=sparse(Patch.index(:),1,1);
Note:
See TracChangeset
for help on using the changeset viewer.