Changeset 9854 for issm/trunk/src/m/classes/prognostic.m
- Timestamp:
- 09/20/11 13:30:26 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/prognostic.m
r9853 r9854 47 47 end % }}} 48 48 function checkconsistency(obj,md,solution,analyses) % {{{ 49 50 %Early return, 51 if ~ismember(PrognosticAnalysisEnum,analyses), return; end 52 53 if ~ismember(md.prognostic.hydrostatic_adjustment,{'Absolute' 'Incremental'}), 54 checkmessage(['model not consistent: model ' md.miscellaneous.name ' prognostic.hydrostatic_adjustment field should be AbsoluteEnum or IncrementalEnum']); 55 end 56 57 fields={'spcthickness'}; 58 checkforcing(md,'prognostic',fields); 49 59 if ~ismember(obj.stabilization,[0 1 3]), 50 60 checkmessage('prognostic.stabilization should be a scalar (0 or 1 or 3)'); 51 61 end 52 62 53 if ~ismember(md.prognostic.hydrostatic_adjustment,{'Absolute' 'Incremental'}),54 checkmessage(['model not consistent: model ' md.miscellaneous.name ' prognostic.hydrostatic_adjustment field should be AbsoluteEnum or IncrementalEnum']);55 end56 63 end % }}} 57 64 function disp(obj) % {{{
Note:
See TracChangeset
for help on using the changeset viewer.