Changeset 19834


Ignore:
Timestamp:
11/30/15 10:14:38 (9 years ago)
Author:
Eric.Larour
Message:

CHG (JAVASCRIPT): avoid vx and vy being pointed to by marshalled buffer. Deep copy first.

File:
1 edited

Legend:

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

    r19793 r19834  
    8585                        var yts=365.0*24.0*3600.0;
    8686
    87                         WriteData(fid,'data',this.vx,'format','DoubleMat','mattype',1,'enum',VxEnum(),'scale',1./yts);
    88                         WriteData(fid,'data',this.vy,'format','DoubleMat','mattype',1,'enum',VyEnum(),'scale',1./yts);
    89                         WriteData(fid,'data',this.vz,'format','DoubleMat','mattype',1,'enum',VzEnum(),'scale',1./yts);
    90                         WriteData(fid,'data',this.pressure,'format','DoubleMat','mattype',1,'enum',PressureEnum());
    91                         WriteData(fid,'data',this.temperature,'format','DoubleMat','mattype',1,'enum',TemperatureEnum());
     87                        WriteData(fid,'data',this.vx.slice(),'format','DoubleMat','mattype',1,'enum',VxEnum(),'scale',1./yts);
     88                        WriteData(fid,'data',this.vy.slice(),'format','DoubleMat','mattype',1,'enum',VyEnum(),'scale',1./yts);
     89                        WriteData(fid,'data',this.vz.slice(),'format','DoubleMat','mattype',1,'enum',VzEnum(),'scale',1./yts);
     90                        WriteData(fid,'data',this.pressure.slice(),'format','DoubleMat','mattype',1,'enum',PressureEnum());
     91                        WriteData(fid,'data',this.temperature.slice(),'format','DoubleMat','mattype',1,'enum',TemperatureEnum());
    9292                        WriteData(fid,'data',this.waterfraction,'format','DoubleMat','mattype',1,'enum',WaterfractionEnum());
    9393                        WriteData(fid,'data',this.sediment_head,'format','DoubleMat','mattype',1,'enum',SedimentHeadEnum());
Note: See TracChangeset for help on using the changeset viewer.