Changeset 486


Ignore:
Timestamp:
05/19/09 12:02:09 (16 years ago)
Author:
Mathieu Morlighem
Message:

Added package check

Location:
issm/trunk/src/m/classes/public
Files:
2 edited

Legend:

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

    r465 r486  
    66%
    77%   See also: SOLVE,RECOVER_SOLVE_OPTIONS
    8 
    9 
    10 
    118
    129%analysis_type: check on this option, error out otherwise
     
    6360        error(['process_solve_options error message: analysis_type ' analysis_type ' not supported yet!']);
    6461end
    65 
    6662if ~(strcmpi(sub_analysis_type,'') |  ...
    67         strcmpi(sub_analysis_type,'steady_state') |  ...
     63        strcmpi(sub_analysis_type,'steady') |  ...
    6864        strcmpi(sub_analysis_type,'horiz') |  ...
    6965        strcmpi(sub_analysis_type,'vert') |  ...
     
    7167        error(['process_solve_options error message: sub_analysis_type ' sub_analysis_type ' not supported yet!']);
    7268end
    73 
    74 
     69if ~(strcmpi(sub_analysis_type,'cielo') |  ...
     70                strcmpi(sub_analysis_type,'ice') |  ...
     71                strcmpi(sub_analysis_type,'macayeal') ),
     72        error(['process_solve_options error message: package ' package ' not supported yet!']);
     73end
    7574
    7675%setup final options structure
  • issm/trunk/src/m/classes/public/solve.m

    r472 r486  
    33%
    44%   Usage:
    5 %       md=solve(md,varargin)
    6 %       where varargin is a lit of paired arguments.
    7 %       arguments can be: 'analysis_type': 'diagnostic','thermal','prognostic','transient'
    8 %       arguments can be: 'sub_analysis_type': 'transient',''
    9 %       arguments can be: 'package': 'macayeal','ice','cielo'
     5%      md=solve(md,varargin)
     6%      where varargin is a lit of paired arguments.
     7%      arguments can be: 'analysis_type': 'diagnostic','thermal','prognostic','transient'
     8%      arguments can be: 'sub_analysis_type': 'transient','steady','' (default if empty = 'steady')
     9%      arguments can be: 'package': 'macayeal','ice','cielo' (default if not specified = 'cielo')
    1010%
    1111%   Examples:
     
    1313%      md=solve(md,'analysis_type','control','package','ice');
    1414%      md=solve(md,'analysis_type','thermal','sub_analysis_type','transient','package','ice');
    15 %      md=solve(md,'analysis_type','thermal','sub_analysis_type','','package','cielo');
     15%      md=solve(md,'analysis_type','thermal','sub_analysis_type','steady','package','cielo');
     16%      md=solve(md,'analysis_type','thermal','package','cielo');
    1617
    1718%some checks on list of arguments
     
    3839displaystring(md.debug,'\n%s\n','launching solution sequence');
    3940
    40 
    4141%If running in parallel, we have a different way of launching the solution
    4242%sequences. qmu is the only solution sequence that cannot run in parallel
     
    4848end
    4949
    50 %Lauch correct solution sequence
     50%Launch correct solution sequence
    5151if strcmpi(md.analysis_type,'diagnostic'),
    5252        md=diagnostic(md);
     
    8787addpath(genpath_ice([ISSM_DIR '/src/m/solutions/cielo']));
    8888addpath(genpath_ice([ISSM_DIR '/bin']));
    89 
    90 function solveusage();
    91 disp(' ');
    92 disp('   Solve usage: md=solve(md,md.analysis_type,package)');
    93 disp('         md.analysis_type can be ''diagnostic'',''transient'', ''thermal'',''thermaltransient'',''parameters'',''mesh2grid''  or ''control''');
    94 disp('         package is either ''cielo'' or ''ice''');
Note: See TracChangeset for help on using the changeset viewer.