Changeset 16500
- Timestamp:
- 10/22/13 08:32:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/contrib/paraview/exportVTK.m
r16490 r16500 91 91 %check which field is a real result and print 92 92 for k=1:num_of_fields 93 if ((length(sol_struct{j}(step).(fieldnames{k})))==num_of_points); 93 if ((length(sol_struct{j}(step).(fieldnames{k})))== ... 94 num_of_points); 95 %paraview does not like NaN, replacing 96 pos=find(isnan(sol_struct{j}(step).(fieldnames{k}))); 97 sol_struct{j}(step).(fieldnames{k})(pos)=-9999; 94 98 fprintf(FID,'SCALARS %s float 1 \n',fieldnames{k}); 95 99 fprintf(FID,'LOOKUP_TABLE default\n'); … … 108 112 for k=1:num_of_sols 109 113 if ((length(res_struct.(solnames{k})))==num_of_points); 114 %paraview does not like NaN, replacing 115 pos=find(isnan(res_struct.(solnames{k}))); 116 res_struct.(solnames{k})(pos)=-9999; 110 117 fprintf(FID,'SCALARS %s float 1 \n',solnames{k}); 111 118 fprintf(FID,'LOOKUP_TABLE default\n');
Note:
See TracChangeset
for help on using the changeset viewer.