Changeset 1050
- Timestamp:
- 06/22/09 14:33:05 (15 years ago)
- Location:
- issm/trunk/src/m/utils/Interp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Interp/griddata_mesh_to_mesh.m
r1 r1050 66 66 delta=x(index(:,2)).*y(index(:,3))-y(index(:,2)).*x(index(:,3))-x(index(:,1)).*y(index(:,3))+y(index(:,1)).*x(index(:,3))+x(index(:,1)).*y(index(:,2))-y(index(:,1)).*x(index(:,2)); 67 67 68 if nel>100, 69 fprintf('%s',' interpolation progress: 0.00 %'); 70 end 71 68 72 %Get area coordinates: 69 73 for n=1:nel, 70 if mod(n,10000)==0, 71 disp(sprintf('\r%s%.2f%s',' interpolation progress: ',n/nel*100,' %')); 74 if mod(n,100)==0, 75 fprintf('\b\b\b\b\b\b\b') 76 fprintf('%5.2f%s',n/nel*100,' %'); 72 77 end 73 78 %first area coordinate … … 88 93 end 89 94 end 90 if nel>10000, 91 disp(sprintf('\r%s%.2f%s',' interpolation progress: ',100,' %')); 95 if nel>100, 96 fprintf('\b\b\b\b\b\b\b\b') 97 fprintf('%4.2f%s\n',100,' %'); 92 98 end 93 99 end -
issm/trunk/src/m/utils/Interp/griddata_mesh_to_mesh_3d.m
r1 r1050 67 67 delta=x(index(:,2)).*y(index(:,3))-y(index(:,2)).*x(index(:,3))-x(index(:,1)).*y(index(:,3))+y(index(:,1)).*x(index(:,3))+x(index(:,1)).*y(index(:,2))-y(index(:,1)).*x(index(:,2)); 68 68 69 if nel>100, 70 fprintf('%s',' interpolation progress: 0.00 %'); 71 end 72 69 73 %Get area coordinates: 70 74 for n=1:nel, 71 if mod(n,10000)==0, 72 disp(sprintf('\r%s%.2f%s',' interpolation progress: ',n/nel*100,' %')); 75 if mod(n,100)==0, 76 fprintf('\b\b\b\b\b\b\b') 77 fprintf('%5.2f%s',n/nel*100,' %'); 73 78 end 74 79 %first area coordinate … … 102 107 end 103 108 end 104 if nel>10000, 105 disp(sprintf('\r%s%.2f%s',' interpolation progress: ',100,' %')); 109 if nel>100, 110 fprintf('\b\b\b\b\b\b\b\b') 111 fprintf('%4.2f%s\n',100,' %'); 106 112 end 107 113 end
Note:
See TracChangeset
for help on using the changeset viewer.