Changeset 17471


Ignore:
Timestamp:
03/18/14 16:46:07 (11 years ago)
Author:
jbondzio
Message:

CHG: make python's checkconsistency consistent to matlab's one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/thermal.py

    r16764 r17471  
    8787                        md = checkfield(md,'fieldname','thermal.isenthalpy','numel',[1],'values',[0,1])
    8888                        md = checkfield(md,'fieldname','thermal.isdynamicbasalspc','numel',[1],'values',[0,1]);
    89                         md = checkfield(md,'fieldname','thermal.requested_outputs','stringrow',1)
     89                        if(md.thermal.isenthalpy):
     90                                md = checkfield(md,'fieldname','thermal.isdynamicbasalspc','numel', [1],'values',[1], 'message',"for enthalpy run thermal.isdynamicbasalspc should be true")
     91                md = checkfield(md,'fieldname','thermal.requested_outputs','stringrow',1)
    9092
    9193                return md
Note: See TracChangeset for help on using the changeset viewer.