Changeset 21227


Ignore:
Timestamp:
09/23/16 13:40:39 (9 years ago)
Author:
Eric.Larour
Message:

CHG: adapted solveslm to the new string processing instead of enum based processing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/solve/solveslm.m

    r21069 r21227  
    1 function slm=solveslm(slm,solutionstring,varargin)
     1function slm=solveslm(slm,solutionstringi,varargin)
    22%SOLVESLR - apply solution sequence for this sealevel model
    33%
     
    1515%      slm=solve(slm,'Transient');
    1616
    17 %first check consistency:
     17%recover and process solve options
     18if strcmpi(solutionstringi,'tr') || strcmpi(solutionstringi,'Transient')
     19        solutionstring = 'TransientSolution';
     20elseif strcmpi(solutionstringi,'slr') || strcmpi(solutionstringi,'Sealevelrise')
     21        solutionstring = 'SealevelriseSolution';
     22else
     23        error(['solutionstring ' solutionstringi ' not supported!']);
     24end
     25
     26%check consistency:
    1827slm.checkconsistency(solutionstring);
    1928
    20 %process options::
     29%process options
    2130options=pairoptions(varargin{:},'solutionstring',solutionstring);
    2231
     
    3645%now, go through icecaps, glacies and earth, and upload all the data independently:
    3746for i=1:length(slm.icecaps),
    38         slm.icecaps{i}=solve(slm.icecaps{i},solutionstring,'batch','yes');
     47        slm.icecaps{i}=solve(slm.icecaps{i},solutionstringi,'batch','yes');
    3948end
    40 slm.earth=solve(slm.earth,solutionstring,'batch','yes');
     49slm.earth=solve(slm.earth,solutionstringi,'batch','yes');
    4150
    4251%Firs, build a runtime name that is unique
Note: See TracChangeset for help on using the changeset viewer.