Changeset 12663 for issm/trunk-jpl/src/m/classes/rifts.m
- Timestamp:
- 07/19/12 15:32:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/rifts.m
r11924 r12663 21 21 22 22 end % }}} 23 function checkconsistency(obj,md,solution,analyses) % {{{23 function md = checkconsistency(obj,md,solution,analyses) % {{{ 24 24 if isempty(obj.riftstruct) | isnans(obj.riftstruct), 25 25 numrifts=0; … … 29 29 if numrifts, 30 30 if ~(md.mesh.dimension==2), 31 checkmessage(['models with rifts are only supported in 2d for now!']);31 md = checkmessage(md,['models with rifts are only supported in 2d for now!']); 32 32 end 33 33 if ~isstruct(obj.riftstruct), 34 checkmessage(['rifts.riftstruct should be a structure!']);34 md = checkmessage(md,['rifts.riftstruct should be a structure!']); 35 35 end 36 36 if ~isempty(find(md.mesh.segmentmarkers>=2)), 37 37 %We have segments with rift markers, but no rift structure! 38 checkmessage(['model should be processed for rifts (run meshprocessrifts)!']);38 md = checkmessage(md,['model should be processed for rifts (run meshprocessrifts)!']); 39 39 end 40 checkfield(md,'rifts.riftstruct.fill','values',[WaterEnum() AirEnum() IceEnum() MelangeEnum()]);40 md = checkfield(md,'rifts.riftstruct.fill','values',[WaterEnum() AirEnum() IceEnum() MelangeEnum()]); 41 41 else 42 42 if ~isnans(obj.riftstruct), 43 checkmessage(['riftstruct shoud be NaN since numrifts is 0!']);43 md = checkmessage(md,['riftstruct shoud be NaN since numrifts is 0!']); 44 44 end 45 45 end
Note:
See TracChangeset
for help on using the changeset viewer.