Changeset 9520


Ignore:
Timestamp:
08/31/11 11:30:01 (14 years ago)
Author:
Mathieu Morlighem
Message:

-md.hydrostatic_adjustment is now a string

Location:
issm/trunk/src/m
Files:
2 edited

Legend:

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

    r9517 r9520  
    177177                 artificial_diffusivity = modelfield('default',0,'marshall',true,'format','Integer');
    178178                 prognostic_DG          = modelfield('default',0,'marshall',true,'format','Integer');
    179                  hydrostatic_adjustment = modelfield('default',0,'marshall',true,'format','Integer');
     179                 hydrostatic_adjustment = modelfield('default',0,'marshall',true,'preprocess','StringToEnum','format','Integer');
    180180                 isprognostic = modelfield('default',0,'marshall',true,'format','Boolean');
    181181                 isdiagnostic = modelfield('default',0,'marshall',true,'format','Boolean');
     
    632632
    633633                         %Hydrostatic adjustment
    634                          md.hydrostatic_adjustment=AbsoluteEnum;
     634                         md.hydrostatic_adjustment='Absolute';
    635635                         %the artificial diffusivity is used in prognostic to avoid
    636636                         %numerical wiggles of the solution.
  • issm/trunk/src/m/model/ismodelselfconsistent.m

    r9518 r9520  
    175175        message(['model not consistent: model ' md.name ' time_adapt field should be 0 or 1']);
    176176end
    177 if ~ismember(md.hydrostatic_adjustment,[AbsoluteEnum IncrementalEnum]),
     177if ~ismember(md.hydrostatic_adjustment,{'Absolute' 'Incremental']),
    178178        message(['model not consistent: model ' md.name ' hydrostatic_adjustment field should be AbsoluteEnum or IncrementalEnum']);
    179179end
Note: See TracChangeset for help on using the changeset viewer.