Changeset 3219
- Timestamp:
- 03/08/10 14:55:58 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/ismodelselfconsistent.m
r3203 r3219 438 438 end 439 439 else 440 %LOG warnings:441 if strcmpi(fields{i},'weights'),442 disp(' ');443 disp(' ''weights'' is a new field that should be of length numberofgrids.');444 disp(' To update your model, use the following line');445 disp(' md.weights=ones(md.numberofgrids,1)');446 disp(' ');447 end448 440 if ((size(eval(['md.' fields{i}]),1)~=fieldsize(1)) | (size(eval(['md.' fields{i}]),2)~=fieldsize(2))) 441 %LOG warnings: 442 if strcmpi(fields{i},'weights'), 443 disp(' '); 444 disp(' ''weights'' is a new field that should be of length numberofgrids.'); 445 disp(' To update your model, use the following line'); 446 disp(' md.weights=ones(md.numberofgrids,1)'); 447 disp(' '); 448 end 449 449 error(['model not consistent: field ' fields{i} ' size should be ' num2str(fieldsize(1)) ' x ' num2str(fieldsize(2))]); 450 450 end
Note:
See TracChangeset
for help on using the changeset viewer.