Changeset 14828


Ignore:
Timestamp:
05/01/13 09:55:51 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: trying to fix GIA stuff

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

Legend:

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

    r14827 r14828  
    3737                                        %recover the furthest time "in time":
    3838                                        if(thickness(end,end)~=md.timestepping.start_time),
    39                                                 md = checkmessage(md,'if isprognostic is on, transient thickness forcing',...
    40                                                         ' for the gia model should not be provided in the future.',...
    41                                                         ' Synchronize your start_time to correspond to the most recent transient',...
    42                                                         ' thickness forcing timestep');
     39                                                md = checkmessage(md,['if isprognostic is on, transient thickness forcing'...
     40                                                        ' for the gia model should not be provided in the future.'...
     41                                                        ' Synchronize your start_time to correspond to the most recent transient'...
     42                                                        ' thickness forcing timestep']);
    4343                                        end
    4444                                end
     
    5555                end % }}}
    5656                function marshall(obj,fid) % {{{
    57                         WriteData(fid,'data',obj.lithosphere_thickness,'format','DoubleMat','mattype',1,'enum',GiaLithosphereThicknessEnum());
     57                        WriteData(fid,'object',obj,'fieldname','lithosphere_thickness','format','DoubleMat','mattype',1);
    5858                        WriteData(fid,'object',obj,'fieldname','output_rates','format','Integer');
    5959                        WriteData(fid,'object',obj,'fieldname','cross_section_shape','format','Integer');
  • issm/trunk-jpl/src/m/classes/gia.py

    r14825 r14828  
    4343                        return md
    4444               
    45                 md = checkfield(md,'gia.lithosphere_thickness','NaN',1,'size',[md.mesh.numberofvertices 1],'>',0)
     45                md = checkfield(md,'gia.lithosphere_thickness','NaN',1,'size',[md.mesh.numberofvertices,1],'>',0)
    4646                md = checkfield(md,'gia.output_rates','numel',[1],'values',[1,2])
    4747                md = checkfield(md,'gia.cross_section_shape','numel',[1],'values',[1,2])
     
    5353        # }}}
    5454        def marshall(self,fid):    # {{{
    55                 WriteData(fid,'data',self.lithosphere_thickness,'format','DoubleMat','mattype',1,'enum',GiaLithosphereThicknessEnum());
     55                WriteData(fid,'object',self,'fieldname','lithosphere_thickness','format','DoubleMat','mattype',1);
    5656                WriteData(fid,'object',self,'fieldname','output_rates','format','Integer');
    5757                WriteData(fid,'object',self,'fieldname','cross_section_shape','format','Integer');
  • issm/trunk-jpl/src/m/classes/model/model.py

    r14825 r14828  
    118118                        'steadystate',\
    119119                        'transient',\
     120                                  'gia',\
    120121                        'autodiff',\
    121122                        'flaim',\
Note: See TracChangeset for help on using the changeset viewer.