Ignore:
Timestamp:
09/20/11 13:30:26 (13 years ago)
Author:
Mathieu Morlighem
Message:

Added all checks in objects

File:
1 edited

Legend:

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

    r9853 r9854  
    4747                end % }}}
    4848                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);
    4959                        if ~ismember(obj.stabilization,[0 1 3]),
    5060                                checkmessage('prognostic.stabilization should be a scalar (0 or 1 or 3)');
    5161                        end
    5262
    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
    5663                end % }}}
    5764                function disp(obj) % {{{
Note: See TracChangeset for help on using the changeset viewer.