Changeset 7088


Ignore:
Timestamp:
01/14/11 08:14:03 (14 years ago)
Author:
Eric.Larour
Message:

Handle P0 interpolation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Interp/PatchToVec.m

    r4951 r7088  
    55%      vec=PatchToVec(Patch)
    66
     7%if the patch is P0, we need to transform the vector a little bit first
     8if size(Patch.value,2)==1,
     9        Patch.value=[Patch.value Patch.value Patch.value];
     10end
    711connectivity=sparse(Patch.index(:),1,1);
    812value       =sparse(Patch.index(:),1,Patch.value(:));
Note: See TracChangeset for help on using the changeset viewer.