Changeset 1309


Ignore:
Timestamp:
07/14/09 14:55:32 (16 years ago)
Author:
Eric.Larour
Message:

added inverse,adjoint and gradient sub analysis types

File:
1 edited

Legend:

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

    r1268 r1309  
    4646end
    4747if ~found
    48         if ~strcmpi(analysis_type,'thermal'),
    49                 sub_analysis_type='none';
    50         else
     48        if strcmpi(analysis_type,'control'),
     49                disp('recover_solve_options info message: no ''sub_analysis_type'' was provided, defaulting to ''inverse''');
     50                sub_analysis_type='inverse';
     51        elseif strcmpi(analysis_type,'thermal'),
    5152                disp('recover_solve_options info message: no ''sub_analysis_type'' was provided, defaulting to ''steady''');
    5253                sub_analysis_type='steady';
     54        else
     55                sub_analysis_type='none';
    5356        end
    5457end
     
    6871
    6972%check solution type is supported
    70 if ~(strcmpi(analysis_type,'control') |  ...
     73if ~(   strcmpi(analysis_type,'control') |  ...
    7174                strcmpi(analysis_type,'diagnostic') |  ...
    7275                strcmpi(analysis_type,'prognostic') |  ...
     
    7881        error(['process_solve_options error message: analysis_type ' analysis_type ' not supported yet!']);
    7982end
    80 if ~(strcmpi(sub_analysis_type,'none') |  ...
     83if ~(   strcmpi(sub_analysis_type,'none') |  ...
    8184                strcmpi(sub_analysis_type,'steady') |  ...
    8285                strcmpi(sub_analysis_type,'horiz') |  ...
     86                strcmpi(sub_analysis_type,'adjoint') |  ...
     87                strcmpi(sub_analysis_type,'gradient') |  ...
     88                strcmpi(sub_analysis_type,'inverse') |  ...
    8389                strcmpi(sub_analysis_type,'vert') |  ...
    8490                strcmpi(sub_analysis_type,'') |  ...
Note: See TracChangeset for help on using the changeset viewer.