Changeset 20930


Ignore:
Timestamp:
07/18/16 02:24:40 (9 years ago)
Author:
Eric.Larour
Message:

CHG (JS): powers of 10 not translated correctly from Matlab to JS.

File:
1 edited

Legend:

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

    r20918 r20930  
    2424
    2525                        //ice latent heat of fusion L (J/kg)
    26                         this.latentheat=3.34*10^5;
     26                        this.latentheat=3.34*Math.pow(10,5);
    2727
    2828                        //ice thermal conductivity (W/m/K)
     
    3636
    3737                        //rate of change of melting point with pressure (K/Pa)
    38                         this.beta=9.8*10^-8;
     38                        this.beta=9.8*Math.pow(10,-8);
    3939
    4040                        //mixed layer (ice-water interface) heat capacity (J/kg/K)
     
    4242
    4343                        //thermal exchange velocity (ice-water interface) (m/s)
    44                         this.thermal_exchange_velocity=1.00*10^-4;
     44                        this.thermal_exchange_velocity=1.00*Math.pow(10,-4);
    4545
    4646                        //Rheology law: what is the temperature dependence of B with T
     
    131131                        WriteData(fid,prefix,'data',StringToEnum(this.rheology_law),'name','md.materials.rheology_law','format','Integer');
    132132                        WriteData(fid,prefix,'object',this,'class','materials','fieldname','lithosphere_shear_modulus','format','Double');
    133                         WriteData(fid,prefix,'object',this,'class','materials','fieldname','lithosphere_density','format','Double','scale',10^3);
     133                        WriteData(fid,prefix,'object',this,'class','materials','fieldname','lithosphere_density','format','Double','scale',Math.pow(10,3));
    134134                        WriteData(fid,prefix,'object',this,'class','materials','fieldname','mantle_shear_modulus','format','Double');
    135                         WriteData(fid,prefix,'object',this,'class','materials','fieldname','mantle_density','format','Double','scale',10^3);
     135                        WriteData(fid,prefix,'object',this,'class','materials','fieldname','mantle_density','format','Double','scale',Math.pow(10,3));
    136136                        WriteData(fid,prefix,'object',this,'class','materials','fieldname','earth_density','format','Double');
    137137
Note: See TracChangeset for help on using the changeset viewer.