Ignore:
Timestamp:
08/13/12 14:41:11 (13 years ago)
Author:
jschierm
Message:

NEW: Still another bunch more python checkconsistency and marshall methods for sub-classes (plus other minor changes).

File:
1 edited

Legend:

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

    r12663 r13020  
    3636                                        md = checkmessage(md,['requesting grounding line migration, but bathymetry is absent!']);
    3737                                end
    38                                 pos=find(md.mask.vertexongroundedice); 
     38                                pos=find(md.mask.vertexongroundedice);
    3939                                if any(abs(md.geometry.bed(pos)-md.geometry.bathymetry(pos))>10^-10),
    40                                         md = checkmessage(md,['bathymetry not equal to bed on grounded ice !']);
     40                                        md = checkmessage(md,['bathymetry not equal to bed on grounded ice!']);
    4141                                end
    42                                 pos=find(md.mask.vertexonfloatingice); 
     42                                pos=find(md.mask.vertexonfloatingice);
    4343                                if any(md.geometry.bathymetry(pos)-md.geometry.bed(pos)>10^-9),
    44                                         md = checkmessage(md,['bathymetry superior to bed on floating ice !']);
     44                                        md = checkmessage(md,['bathymetry superior to bed on floating ice!']);
    4545                                end
    4646                        end
     
    5555                end % }}}
    5656                function marshall(obj,fid) % {{{
    57                         WriteData(fid,'data',StringToEnum(obj.migration),'enum',GroundinglineMigrationEnum,'format','Integer');
     57                        WriteData(fid,'data',StringToEnum(obj.migration),'enum',GroundinglineMigrationEnum(),'format','Integer');
    5858                        WriteData(fid,'object',obj,'fieldname','melting_rate','format','Double');
    5959                end % }}}
Note: See TracChangeset for help on using the changeset viewer.