Changeset 486
- Timestamp:
- 05/19/09 12:02:09 (16 years ago)
- 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 6 6 % 7 7 % See also: SOLVE,RECOVER_SOLVE_OPTIONS 8 9 10 11 8 12 9 %analysis_type: check on this option, error out otherwise … … 63 60 error(['process_solve_options error message: analysis_type ' analysis_type ' not supported yet!']); 64 61 end 65 66 62 if ~(strcmpi(sub_analysis_type,'') | ... 67 strcmpi(sub_analysis_type,'steady _state') | ...63 strcmpi(sub_analysis_type,'steady') | ... 68 64 strcmpi(sub_analysis_type,'horiz') | ... 69 65 strcmpi(sub_analysis_type,'vert') | ... … … 71 67 error(['process_solve_options error message: sub_analysis_type ' sub_analysis_type ' not supported yet!']); 72 68 end 73 74 69 if ~(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!']); 73 end 75 74 76 75 %setup final options structure -
issm/trunk/src/m/classes/public/solve.m
r472 r486 3 3 % 4 4 % Usage: 5 % 6 % 7 % 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') 10 10 % 11 11 % Examples: … … 13 13 % md=solve(md,'analysis_type','control','package','ice'); 14 14 % 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'); 16 17 17 18 %some checks on list of arguments … … 38 39 displaystring(md.debug,'\n%s\n','launching solution sequence'); 39 40 40 41 41 %If running in parallel, we have a different way of launching the solution 42 42 %sequences. qmu is the only solution sequence that cannot run in parallel … … 48 48 end 49 49 50 %Lau ch correct solution sequence50 %Launch correct solution sequence 51 51 if strcmpi(md.analysis_type,'diagnostic'), 52 52 md=diagnostic(md); … … 87 87 addpath(genpath_ice([ISSM_DIR '/src/m/solutions/cielo'])); 88 88 addpath(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.