Changeset 15859


Ignore:
Timestamp:
08/21/13 14:17:34 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: better error message for new model names

Location:
issm/trunk-jpl/src/m/parameterization
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/parameterization/setflowequation.m

    r15771 r15859  
    5555%check that each element has at least one flag
    5656if any(SIAflag+SSAflag+HOflag+L1L2flag+FSflag==0),
    57         error('elements type not assigned, must be specified')
     57        error('elements type not assigned, supported models are ''SIA'',''SSA'',''HO'' and ''FS''')
    5858end
    5959
  • issm/trunk-jpl/src/m/parameterization/setflowequation.py

    r15771 r15859  
    5959        #check that each element has at least one flag
    6060        if not any(SIAflag+SSAflag+L1L2flag+HOflag+FSflag):
    61                 raise TypeError("elements type not assigned, must be specified")
     61                raise TypeError("elements type not assigned, supported models are 'SIA','SSA','HO' and 'FS'")
    6262
    6363        #check that each element has only one flag
Note: See TracChangeset for help on using the changeset viewer.