Changeset 19759


Ignore:
Timestamp:
11/18/15 22:31:02 (9 years ago)
Author:
Eric.Larour
Message:

CHG: finished implementing all classes and modules needed to parameterize
test101 in javascript.

Location:
issm/trunk-jpl/src/m
Files:
17 added
5 edited

Legend:

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

    r19753 r19759  
    1313                fielddisplay(this,'requested_outputs','additional outputs requested');
    1414        } // }}}
     15                this.initialize = function(md) {// {{{
     16
     17                        if (self.mass_balance === NaN){
     18                                self.mass_balance=NewArrayFill(md.mesh.numberofvertices,0);
     19                                console.log('      no smb.mass_balance specified: values set as zero');
     20                        }
     21
     22                } // }}}
    1523        //properties
    1624        this.mass_balance = NaN;
  • issm/trunk-jpl/src/m/classes/basalforcings.js

    r19753 r19759  
    1717
    1818        } // }}}
     19                this.initialize = function (md){ // {{{
     20
     21                        if (this.groundedice_melting_rate === NaN){
     22                                this.groundedice_melting_rate=NewArrayFill(md.mesh.numberofvertices,0);
     23                                console.log('      no basalforcings.groundedice_melting_rate specified: values set as zero');
     24                        }
     25
     26                        if (this.floatingice_melting_rate === NaN){
     27                                this.floatingice_melting_rate=NewArrayFill(md.mesh.numberofvertices,0);
     28                                console.log('      no basalforcings.floatingice_melting_rate specified: values set as zero');
     29                        }
     30
     31                } // }}}
    1932        //properties
    2033        //{{{
  • issm/trunk-jpl/src/m/classes/model.js

    r19753 r19759  
    6666                        this.settings         = new settings();
    6767                        this.toolkits         = new toolkits();
    68                         this.toolkits.disp();
    6968                        this.cluster          = new generic();
    7069                        this.balancethickness = new balancethickness();
  • issm/trunk-jpl/src/m/classes/stressbalance.js

    r19753 r19759  
    9393        this.loadingforce           = NaN;
    9494        this.requested_outputs      = ['']
     95
    9596        this.setdefaultparameters();
    9697        //}}}
  • issm/trunk-jpl/src/m/plot/processdata.js

    r19741 r19759  
    1515
    1616        //check format
    17         if ( data.length ==0 | data === [] | typeof data === 'number' | ArrayAnyNaN(data)){
     17        if ( data.length ==0 | data === [] | typeof data === 'number' | data === NaN ){
    1818                throw Error('plotmodel error message: data provided is empty');
    1919        }
Note: See TracChangeset for help on using the changeset viewer.