Ignore:
Timestamp:
12/05/15 22:58:08 (9 years ago)
Author:
Eric.Larour
Message:

CHG (JAVASCRIPT): fixed some issues with segfaults.

File:
1 edited

Legend:

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

    r19828 r19860  
    3434        } //}}}
    3535                this.marshall=function(md,fid) { //{{{
    36                         yts=365.0*24.0*3600.0;
     36                        var yts=365.0*24.0*3600.0;
    3737                        WriteData(fid,'enum',CalvingLawEnum(),'data',DefaultCalvingEnum(),'format','Integer');
    3838                        WriteData(fid,'enum',LevelsetStabilizationEnum(),'data',this.stabilization,'format','Integer');
     
    4040                        WriteData(fid,'object',this,'fieldname','calvingrate','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'scale',1./yts);
    4141                        WriteData(fid,'object',this,'fieldname','meltingrate','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'scale',1./yts);
     42                }//}}}
     43                this.fix=function() { //{{{
     44                        this.spclevelset=NullFix(this.spclevelset,NaN);
     45                        this.calvingrate=NullFix(this.calvingrate,NaN);
     46                        this.meltingrate=NullFix(this.meltingrate,NaN);
    4247                }//}}}
    4348        //properties
Note: See TracChangeset for help on using the changeset viewer.