Changeset 19122
- Timestamp:
- 02/19/15 08:39:16 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/consistency/comparemodels.m
r15991 r19122 27 27 %Do not do anything 28 28 elseif any(field1~=field2), 29 disp([fieldname ' differs']); 29 %Deal with NaN... 30 pos1=find(isnan(field1)); 31 pos2=find(isnan(field2)); 32 if numel(pos1)==numel(pos2) & all(pos1==pos2), 33 field1(pos1)=0; field2(pos2)=0; 34 if any(field1~=field2), 35 disp([fieldname ' differs']); 36 end 37 else 38 disp([fieldname ' differs']); 39 end 30 40 end 31 41 end
Note:
See TracChangeset
for help on using the changeset viewer.