Changeset 7024


Ignore:
Timestamp:
01/11/11 14:23:41 (14 years ago)
Author:
seroussi
Message:

time_adapt and cfl_coefficient consistency

File:
1 edited

Legend:

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

    r7021 r7024  
    3030                md.analysis_type=analysis(i);
    3131                ismodelselfconsistent(md);
     32        end
     33
     34        if(md.cfl_coefficient>1 | md.cfl_coefficient<0),
     35                error(['model not consistent: model ' md.name ' cfl_coefficient field should between  0 and 1']);
    3236        end
    3337end
     
    178182if ~ismember(md.lowmem,[0 1]),
    179183        error(['model not consistent: model ' md.name ' lowmem field should be 0 or 1']);
     184end
     185if ~ismember(md.time_adapt,[0 1]),
     186        error(['model not consistent: model ' md.name ' time_adapt field should be 0 or 1']);
    180187end
    181188if ~ismember(md.hydrostatic_adjustment,[AbsoluteEnum IncrementalEnum]),
Note: See TracChangeset for help on using the changeset viewer.