Changeset 22891


Ignore:
Timestamp:
07/02/18 10:31:57 (7 years ago)
Author:
Eric.Larour
Message:

CHG: noearth option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-NatGeoScience2016/src/m/classes/sealevelmodel.m

    r22481 r22891  
    159159                        disp(sprintf('Earth: %i/%g',mvi,timei));
    160160                end % }}}
    161                 function self=homogeneize(self) % {{{
     161                function self=homogeneize(self,noearth) % {{{
     162                        if nargin==1,
     163                                noearth=0;
     164                        end
    162165                        mintimestep=Inf;
    163166                        for  i=1:length(self.icecaps),
     
    165168                                mintimestep=min(mintimestep, length(ic.results.TransientSolution));
    166169                        end
    167                         mintimestep=min(mintimestep, length(self.earth.results.TransientSolution));
     170                        if ~noearth,
     171                                mintimestep=min(mintimestep, length(self.earth.results.TransientSolution));
     172                        end
    168173                       
    169174                        for  i=1:length(self.icecaps),
     
    173178                        end
    174179                        ic=self.earth;
    175                         ic.results.TransientSolution=ic.results.TransientSolution(1:mintimestep);
     180                        if ~noearth,
     181                                ic.results.TransientSolution=ic.results.TransientSolution(1:mintimestep);
     182                        end
    176183                        self.earth=ic;
    177184                end % }}}
Note: See TracChangeset for help on using the changeset viewer.