Changeset 12664
- Timestamp:
- 07/19/12 15:32:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/model/ismodelselfconsistent.m
r11224 r12664 6 6 7 7 %initialize consistency as true 8 m odelconsistency(true);8 md.private.isconsistent=true; 9 9 10 10 %Get solution and associated analyses … … 24 24 %Check that current field is an object 25 25 if ~isobject(md.(field)) 26 checkmessage(['field ''' char(field) ''' is not an object']);26 md=checkmessage(md,['field ''' char(field) ''' is not an object']); 27 27 end 28 28 29 29 %Check consistency of the object 30 30 if verLessThan('matlab', '7.6') 31 checkconsistency(md.(field),md,solution,analyses);31 md=checkconsistency(md.(field),md,solution,analyses); 32 32 else 33 md .(field).checkconsistency(md,solution,analyses);33 md=md.(field).checkconsistency(md,solution,analyses); 34 34 end 35 35 end 36 36 37 37 %error message if mode is not consistent 38 if m odelconsistency==false,39 error(' 38 if md.private.isconsistent==false, 39 error('Model not consistent, see messages above'); 40 40 end
Note:
See TracChangeset
for help on using the changeset viewer.