Changeset 5643


Ignore:
Timestamp:
09/01/10 10:02:54 (15 years ago)
Author:
Mathieu Morlighem
Message:

better error message for Ala

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/process_solve_options.m

    r5103 r5643  
    2020
    2121%convert to Enum if a string was provided
    22 if ischar(analysis_type),        analysis_type=eval([upper(analysis_type(1))     lower(analysis_type(2:end-8))     'SolutionEnum()']); end
    23 if ischar(sub_analysis_type),sub_analysis_type=eval([upper(sub_analysis_type(1)) lower(sub_analysis_type(2:end-8)) 'AnalysisEnum()']); end
     22if ischar(analysis_type), error(['only Enums are supported as ''analysis_type''. For example: md=solve(md,''analysis_type'',DiagnosticSolutionEnum); '])   
     23if ischar(sub_analysis_type), error(['only Enums are supported as ''sub_analysis_type''. For example: md=solve(md,''analysis_type'',DiagnosticSolutionEnum); '])
    2424
    2525%check solution type is supported
Note: See TracChangeset for help on using the changeset viewer.