Ignore:
Timestamp:
09/20/11 17:12:50 (13 years ago)
Author:
Mathieu Morlighem
Message:

Done with model consistency checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/prognostic.m

    r9854 r9862  
    5151                        if ~ismember(PrognosticAnalysisEnum,analyses), return; end
    5252
    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);
    59                         if ~ismember(obj.stabilization,[0 1 3]),
    60                                 checkmessage('prognostic.stabilization should be a scalar (0 or 1 or 3)');
    61                         end
     53                        checkfield(md,'prognostic.spcthickness','forcing',1);
     54                        checkfield(md,'prognostic.hydrostatic_adjustment','values',{'Absolute' 'Incremental'});
     55                        checkfield(md,'prognostic.stabilization','values',[0 1 3]);
    6256
    6357                end % }}}
Note: See TracChangeset for help on using the changeset viewer.