Ignore:
Timestamp:
06/03/16 10:05:11 (9 years ago)
Author:
Mathieu Morlighem
Message:

NEW: marhsall strings instead of enums

File:
1 edited

Legend:

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

    r19958 r20690  
    5757
    5858                end % }}}
    59                 function marshall(self,md,fid) % {{{
    60                         WriteData(fid,'object',self,'fieldname','mantle_viscosity','format','DoubleMat','mattype',1);
    61                         WriteData(fid,'object',self,'fieldname','lithosphere_thickness','format','DoubleMat','mattype',1,'scale',10^3); %from km to m
    62                         WriteData(fid,'object',self,'fieldname','cross_section_shape','format','Integer');
     59                function marshall(self,prefix,md,fid) % {{{
     60                        WriteData(fid,prefix,'object',self,'fieldname','mantle_viscosity','format','DoubleMat','mattype',1);
     61                        WriteData(fid,prefix,'object',self,'fieldname','lithosphere_thickness','format','DoubleMat','mattype',1,'scale',10^3); %from km to m
     62                        WriteData(fid,prefix,'object',self,'fieldname','cross_section_shape','format','Integer');
    6363                end % }}}
    6464                function savemodeljs(self,fid,modelname) % {{{
Note: See TracChangeset for help on using the changeset viewer.