Changeset 21809


Ignore:
Timestamp:
07/18/17 16:53:01 (8 years ago)
Author:
schlegel
Message:

CHG: add an extrude function for misfit output def

Location:
issm/trunk-jpl/src/m/classes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/SMBforcing.m

    r21668 r21809  
    6868
    6969                        WriteData(fid,prefix,'name','md.smb.model','data',1,'format','Integer');
    70                         WriteData(fid,prefix,'object',self,'class','smb','fieldname','mass_balance','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
    71                         %WriteData(fid,prefix,'object',self,'class','smb','fieldname','mass_balance','format','CompressedMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
     70                        %WriteData(fid,prefix,'object',self,'class','smb','fieldname','mass_balance','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
     71                        WriteData(fid,prefix,'object',self,'class','smb','fieldname','mass_balance','format','CompressedMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
    7272                       
    7373                        %process requested outputs
  • issm/trunk-jpl/src/m/classes/misfit.m

    r21738 r21809  
    1919                %misfit
    2020                name                                    = '';
    21                 definitionstring                = ''; %string that identifies this output definition uniquely, from 'Outputdefinition[1-10]'
     21                definitionstring                = ''; %string that identifies this output definition uniquely, from 'Outputdefinition[1-100]'
    2222                model_string                    = ''; %string for field that is modeled
    2323                observation                             = NaN; %observed field that we compare the model against
     
    3131       
    3232        methods
     33                function self = extrude(self,md) % {{{
     34                        if ~isnan(self.weights)
     35                                self.weights=project3d(md,'vector',self.weights,'type','node');
     36                        end
     37                        if ~isnan(self.observation)
     38                                self.observation=project3d(md,'vector',self.observation,'type','node');
     39                        end
     40                end % }}}
    3341                function self = misfit(varargin) % {{{
    3442                        if nargin==0,
Note: See TracChangeset for help on using the changeset viewer.