Changeset 20777


Ignore:
Timestamp:
06/19/16 11:57:24 (9 years ago)
Author:
Eric.Larour
Message:

CHG (JS): massive debug of the javascript runs.

Location:
issm/trunk-jpl/src/m/classes
Files:
36 edited

Legend:

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

    r20690 r20777  
    3939
    4040                } // }}}
    41                 this.marshall=function(md,fid) { //{{{
     41                this.marshall=function(md,prefix,fid) { //{{{
    4242
    4343                        var yts=365.0*24.0*3600.0;
  • issm/trunk-jpl/src/m/classes/autodiff.js

    r20690 r20777  
    6060                        }
    6161                } // }}}
    62                 this.marshall=function(md,fid) { //{{{
     62                this.marshall=function(md,prefix,fid) { //{{{
    6363
    6464                        WriteData(fid,prefix,'object',this,'fieldname','isautodiff','format','Boolean');
  • issm/trunk-jpl/src/m/classes/balancethickness.js

    r20690 r20777  
    3333                        //checkfield(md,'fieldname','balancethickness.omega','size',[md.mesh.numberofvertices ,1],'NaN',1,'Inf',1,'>=',0);
    3434                } //}}}
    35                 this.marshall=function(md,fid) { //{{{
     35                this.marshall=function(md,prefix,fid) { //{{{
    3636
    3737                        var yts=365.0*24.0*3600.0;
  • issm/trunk-jpl/src/m/classes/basalforcings.js

    r20690 r20777  
    5454                        }
    5555                } // }}}
    56                 this.marshall=function(md,fid) { //{{{
     56                this.marshall=function(md,prefix,fid) { //{{{
    5757
    5858                        var yts=365.0*24.0*3600.0;
  • issm/trunk-jpl/src/m/classes/calving.js

    r20690 r20777  
    2626                checkfield(md,'fieldname','calving.meltingrate(1:md.mesh.numberofvertices,:)','>=',0,'timeseries',1,'NaN',1,'Inf',1);
    2727        } //}}}
    28                 this.marshall=function(md,fid) { //{{{
     28                this.marshall=function(md,prefix,fid) { //{{{
    2929                        var yts=365.0*24.0*3600.0;
    3030                        WriteData(fid,prefix,'name','md.calving.law','data',DefaultCalvingEnum(),'format','Integer');
  • issm/trunk-jpl/src/m/classes/constants.js

    r20690 r20777  
    4141
    4242                } // }}}
    43                 this.marshall=function(md,fid) { //{{{
     43                this.marshall=function(md,prefix,fid) { //{{{
    4444                        WriteData(fid,prefix,'object',this,'fieldname','g','format','Double');
    4545                        WriteData(fid,prefix,'object',this,'fieldname','yts','format','Double');
  • issm/trunk-jpl/src/m/classes/damage.js

    r20690 r20777  
    9292                        }
    9393                } //}}}
    94                 this.marshall=function(md,fid) { //{{{
     94                this.marshall=function(md,prefix,fid) { //{{{
    9595               
    9696                        WriteData(fid,prefix,'object',this,'fieldname','isdamage','format','Boolean');
  • issm/trunk-jpl/src/m/classes/debug.js

    r20690 r20777  
    2020
    2121        }// }}}
    22                 this.marshall=function(md,fid) { //{{{
     22                this.marshall=function(md,prefix,fid) { //{{{
    2323                        WriteData(fid,prefix,'object',this,'fieldname','profiling','format','Boolean');
    2424                }//}}}
  • issm/trunk-jpl/src/m/classes/flaim.js

    r19787 r20777  
    2525                console.log(sprintf('\n      Optimization:'));
    2626                fielddisplay(this,'path_optimize'     ,'optimize? (default false)');
    27                 fielddisplay(this,'opt_ndir'     ,['number of directions to test when moving a point.  If this value = 1, a random direction is tested.',...
    28                                 'A value > 1 results in directions equally spaced from [0, 2*PI] being tested.',...
    29                                 'For example, 4 would result in directions [0, PI/2, PI, 3PI/2].']);
     27                fielddisplay(this,'opt_ndir'     ,['number of directions to test when moving a point.  If this value = 1, a random direction is tested.', 'A value > 1 results in directions equally spaced from [0, 2*PI] being tested.', 'For example, 4 would result in directions [0, PI/2, PI, 3PI/2].']);
    3028                fielddisplay(this,'opt_dist'     ,'specifies the distance in km (default 25) to move a randomly selected path point on each iteration');
    31                 fielddisplay(this,'opt_niter'     ,['number of iterations (default 30,000) to run for flightplan optimization',...
    32                                 'i.e. the number of times to randomly select a point and move it.']);
     29                fielddisplay(this,'opt_niter'     ,['number of iterations (default 30,000) to run for flightplan optimization', 'i.e. the number of times to randomly select a point and move it.']);
    3330
    3431                console.log(sprintf('\n      Output:'));
  • issm/trunk-jpl/src/m/classes/flowequation.js

    r20690 r20777  
    9090                        }
    9191                } // }}}
    92                 this.marshall=function(md,fid) { //{{{
     92                this.marshall=function(md,prefix,fid) { //{{{
    9393                        WriteData(fid,prefix,'object',this,'fieldname','isSIA','format','Boolean');
    9494                        WriteData(fid,prefix,'object',this,'fieldname','isSSA','format','Boolean');
  • issm/trunk-jpl/src/m/classes/friction.js

    r20690 r20777  
    2929
    3030                } // }}}
    31                 this.marshall=function(md,fid) { //{{{
     31                this.marshall=function(md,prefix,fid) { //{{{
    3232                        var yts=365.0*24.0*3600.0;
    3333
  • issm/trunk-jpl/src/m/classes/geometry.js

    r20690 r20777  
    3939                        }
    4040                } // }}}
    41                 this.marshall=function(md,fid) { //{{{
     41                this.marshall=function(md,prefix,fid) { //{{{
    4242                        WriteData(fid,prefix,'object',this,'fieldname','surface','format','DoubleMat','mattype',1);
    4343                        WriteData(fid,prefix,'object',this,'fieldname','thickness','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1);
  • issm/trunk-jpl/src/m/classes/gia.js

    r20690 r20777  
    4444                }
    4545        } // }}}
    46                 this.marshall=function(md,fid) { //{{{
     46                this.marshall=function(md,prefix,fid) { //{{{
    4747                        WriteData(fid,prefix,'object',this,'fieldname','mantle_viscosity','format','DoubleMat','mattype',1);
    4848                        WriteData(fid,prefix,'object',this,'fieldname','lithosphere_thickness','format','DoubleMat','mattype',1,'scale',Math.pow(10,3)); //from km to m
  • issm/trunk-jpl/src/m/classes/groundingline.js

    r20690 r20777  
    4040                        }
    4141                } // }}}
    42                 this.marshall=function(md,fid) { //{{{
     42                this.marshall=function(md,prefix,fid) { //{{{
    4343                        WriteData(fid,prefix,'data',StringToEnum(this.migration),'name','md.groundingline.migration','format','Integer');
    4444                }//}}}
  • issm/trunk-jpl/src/m/classes/hydrologyshreve.js

    r20690 r20777  
    3636
    3737                } // }}}
    38                 this.marshall=function(md,fid) { //{{{
     38                this.marshall=function(md,prefix,fid) { //{{{
    3939                        WriteData(fid,prefix,'name','md.hydrology.model','data',HydrologyshreveEnum(),'format','Integer');
    4040                        WriteData(fid,prefix,'object',this,'fieldname','spcwatercolumn','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1);
  • issm/trunk-jpl/src/m/classes/initialization.js

    r20690 r20777  
    8181                        }
    8282                } //}}}
    83                 this.marshall=function(md,fid) { //{{{
     83                this.marshall=function(md,prefix,fid) { //{{{
    8484
    8585                        var yts=365.0*24.0*3600.0;
  • issm/trunk-jpl/src/m/classes/inversion.js

    r20690 r20777  
    116116                        }
    117117                } // }}}
    118                 this.marshall=function(md,fid) { //{{{
     118                this.marshall=function(md,prefix,fid) { //{{{
    119119
    120120                        var yts=365.0*24.0*3600.0;
  • issm/trunk-jpl/src/m/classes/levelset.js

    r20690 r20777  
    3131                checkfield(md,'fieldname','levelset.stabilization','values',[0,1,2]);
    3232        } //}}}
    33         this.marshall=function(md,fid) { //{{{
     33        this.marshall=function(md,prefix,fid) { //{{{
    3434                WriteData(fid,prefix,'object',this,'fieldname','stabilization','format','Integer');
    35                 WriteData(fid,prefix,'object',this,'fieldname','.spclevelset','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1);
     35                WriteData(fid,prefix,'object',this,'fieldname','spclevelset','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1);
    3636                WriteData(fid,prefix,'object',this,'fieldname','reinit_frequency','format','Integer');
    3737
  • issm/trunk-jpl/src/m/classes/mask.js

    r20690 r20777  
    5151                        }
    5252                } // }}}
    53                 this.marshall=function(md,fid) { //{{{
     53                this.marshall=function(md,prefix,fid) { //{{{
    5454                        WriteData(fid,prefix,'object',this,'fieldname','groundedice_levelset','format','DoubleMat','mattype',1);
    5555                        WriteData(fid,prefix,'object',this,'fieldname','ice_levelset','format','DoubleMat','mattype',1);
  • issm/trunk-jpl/src/m/classes/maskpsl.js

    r20690 r20777  
    5858                        }
    5959                } // }}}
    60                 this.marshall=function(md,fid) { //{{{
     60                this.marshall=function(md,prefix,fid) { //{{{
    6161                        WriteData(fid,prefix,'object',this,'class','mask','fieldname','groundedice_levelset','format','DoubleMat','mattype',1);
    6262                        WriteData(fid,prefix,'object',this,'class','mask','fieldname','ice_levelset','format','DoubleMat','mattype',1);
  • issm/trunk-jpl/src/m/classes/masstransport.js

    r20690 r20777  
    5454
    5555                } // }}}
    56                 this.marshall=function(md,fid) { //{{{
     56                this.marshall=function(md,prefix,fid) { //{{{
    5757
    5858                        var yts=365.*24.*3600.;
  • issm/trunk-jpl/src/m/classes/matice.js

    r20690 r20777  
    108108
    109109                } // }}}
    110                 this.marshall=function(md,fid) { //{{{
     110                this.marshall=function(md,prefix,fid) { //{{{
    111111                        WriteData(fid,prefix,'name','md.materials.type','data',MaticeEnum(),'format','Integer');
    112112                        WriteData(fid,prefix,'object',this,'class','materials','fieldname','rho_ice','format','Double');
  • issm/trunk-jpl/src/m/classes/mesh2d.js

    r20690 r20777  
    7979                        }
    8080                } // }}}
    81                 this.marshall=function(md,fid) { //{{{
     81                this.marshall=function(md,prefix,fid) { //{{{
    8282                        WriteData(fid,prefix,'name','md.mesh.domain_type','data',StringToEnum('Domain' + this.domaintype()),'format','Integer');
    8383                        WriteData(fid,prefix,'name','md.mesh.domain_dimension','data',this.dimension(),'format','Integer');
  • issm/trunk-jpl/src/m/classes/mesh3dsurface.js

    r20703 r20777  
    7777
    7878                } // }}}
    79                 this.marshall=function(prefix,md,fid) { //{{{
     79                this.marshall=function(md,prefix,fid) { //{{{
    8080                        WriteData(fid,prefix,'name','md.mesh.domain_type','data',StringToEnum('Domain' + this.domaintype()),'format','Integer');
    8181                        WriteData(fid,prefix,'name','md.mesh.domain_dimension','data',this.dimension(),'format','Integer');
  • issm/trunk-jpl/src/m/classes/miscellaneous.js

    r20690 r20777  
    2424                        checkfield(md,'fieldname','miscellaneous.name','empty',1);
    2525                }// }}}
    26                 this.marshall=function(md,fid) { //{{{
     26                this.marshall=function(md,prefix,fid) { //{{{
    2727                        WriteData(fid,prefix,'object',this,'fieldname','name','format','String');
    2828                }//}}}
  • issm/trunk-jpl/src/m/classes/outputdefinition.js

    r20690 r20777  
    2727
    2828                } // }}}
    29                 this.marshall=function(md,fid) { //{{{
     29                this.marshall=function(md,prefix,fid) { //{{{
    3030
    3131                var enums=NewArrayFill(this.definitions.length,0);
  • issm/trunk-jpl/src/m/classes/qmu.js

    r20690 r20777  
    100100
    101101                } // }}}
    102                 this.marshall=function(md,fid) { //{{{
     102                this.marshall=function(md,prefix,fid) { //{{{
    103103                        WriteData(fid,prefix,'object',this,'fieldname','isdakota','format','Boolean');
    104104                        if (!this.isdakota){
  • issm/trunk-jpl/src/m/classes/rifts.js

    r20690 r20777  
    4646                        }
    4747                } //}}}
    48                 this.marshall=function(md,fid) { //{{{
     48                this.marshall=function(md,prefix,fid) { //{{{
    4949
    5050                        var numrifts;
  • issm/trunk-jpl/src/m/classes/settings.js

    r20690 r20777  
    5959                        checkfield(md,'fieldname','settings.waitonlock','numel',[1]);
    6060                } // }}}
    61                 this.marshall=function(md,fid) { //{{{
     61                this.marshall=function(md,prefix,fid) { //{{{
    6262                        WriteData(fid,prefix,'object',this,'fieldname','results_on_nodes','format','Boolean');
    6363                        WriteData(fid,prefix,'object',this,'fieldname','io_gather','format','Boolean');
  • issm/trunk-jpl/src/m/classes/slr.js

    r20690 r20777  
    3939                        if(ArrayAnyEqual(ArrayIsMember(SealevelriseAnalysisEnum(),analyses),0))return;
    4040                       
    41                         md = checkfield(md,'fieldname','slr.deltathickness','NaN',1,'Inf',1,'size',[md.mesh.numberofvertices, 1]);
     41                        md = checkfield(md,'fieldname','slr.deltathickness','NaN',1,'Inf',1,'size',[md.mesh.numberofelements, 1]);
    4242                        md = checkfield(md,'fieldname','slr.sealevel','NaN',1,'Inf',1,'size',[md.mesh.numberofvertices, 1]);
    4343                        md = checkfield(md,'fieldname','slr.love_h','NaN',1,'Inf',1);
     
    8383                fielddisplay(this,'requested_outputs','additional outputs requested');
    8484                } //}}}
    85                         this.marshall=function(md,fid) { //{{{
     85                        this.marshall=function(md,prefix,fid) { //{{{
    8686
    87                         WriteData(fid,prefix,'object',self,'fieldname','deltathickness','format','DoubleMat','mattype',1);
    88                         WriteData(fid,prefix,'object',self,'fieldname','sealevel','mattype',1,'format','DoubleMat','timeserieslength',md.mesh.numberofvertices+1);
    89                         WriteData(fid,prefix,'object',self,'fieldname','reltol','format','Double');
    90                         WriteData(fid,prefix,'object',self,'fieldname','abstol','format','Double');
    91                         WriteData(fid,prefix,'object',self,'fieldname','maxiter','format','Integer');
    92                         WriteData(fid,prefix,'object',self,'fieldname','love_h','format','DoubleMat','mattype',1);
    93                         WriteData(fid,prefix,'object',self,'fieldname','love_k','format','DoubleMat','mattype',1);
    94                         WriteData(fid,prefix,'object',self,'fieldname','tide_love_h','format','Double');
    95                         WriteData(fid,prefix,'object',self,'fieldname','tide_love_k','format','Double');
    96                         WriteData(fid,prefix,'object',self,'fieldname','rigid','format','Boolean');
    97                         WriteData(fid,prefix,'object',self,'fieldname','elastic','format','Boolean');
    98                         WriteData(fid,prefix,'object',self,'fieldname','rotation','format','Boolean');
    99                         WriteData(fid,prefix,'object',self,'fieldname','degacc','format','Double');
    100                         WriteData(fid,prefix,'object',self,'fieldname','transitions','format','MatArray');
     87                        WriteData(fid,prefix,'object',this,'fieldname','deltathickness','format','DoubleMat','mattype',2);
     88                        WriteData(fid,prefix,'object',this,'fieldname','sealevel','mattype',1,'format','DoubleMat','enum',SealevelEnum(),'timeserieslength',md.mesh.numberofvertices+1);
     89                        WriteData(fid,prefix,'object',this,'fieldname','reltol','format','Double');
     90                        WriteData(fid,prefix,'object',this,'fieldname','abstol','format','Double');
     91                        WriteData(fid,prefix,'object',this,'fieldname','maxiter','format','Integer');
     92                        WriteData(fid,prefix,'object',this,'fieldname','love_h','format','DoubleMat','mattype',1);
     93                        WriteData(fid,prefix,'object',this,'fieldname','love_k','format','DoubleMat','mattype',1);
     94                        WriteData(fid,prefix,'object',this,'fieldname','tide_love_h','format','Double');
     95                        WriteData(fid,prefix,'object',this,'fieldname','tide_love_k','format','Double');
     96                        WriteData(fid,prefix,'object',this,'fieldname','rigid','format','Boolean');
     97                        WriteData(fid,prefix,'object',this,'fieldname','elastic','format','Boolean');
     98                        WriteData(fid,prefix,'object',this,'fieldname','rotation','format','Boolean');
     99                        WriteData(fid,prefix,'object',this,'fieldname','degacc','format','Double');
     100                        WriteData(fid,prefix,'object',this,'fieldname','transitions','format','MatArray');
    101101                       
    102102                        //process requested outputs
  • issm/trunk-jpl/src/m/classes/steadystate.js

    r20690 r20777  
    4646                }
    4747        } // }}}
    48                 this.marshall=function(md,fid) { //{{{
     48                this.marshall=function(md,prefix,fid) { //{{{
    4949                        WriteData(fid,prefix,'object',this,'fieldname','reltol','format','Double');
    5050                        WriteData(fid,prefix,'object',this,'fieldname','maxiter','format','Integer');
  • issm/trunk-jpl/src/m/classes/stressbalance.js

    r20690 r20777  
    136136                        }
    137137                } // }}}
    138                 this.marshall=function(md,fid) { //{{{
     138                this.marshall=function(md,prefix,fid) { //{{{
    139139
    140140                        WriteData(fid,prefix,'object',this,'class','stressbalance','fieldname','vertex_pairing','format','DoubleMat','mattype',3);
  • issm/trunk-jpl/src/m/classes/thermal.js

    r20690 r20777  
    8484                checkfield(md,'fieldname','thermal.requested_outputs','stringrow',1);
    8585        } // }}}
    86                 this.marshall=function(md,fid) { //{{{
     86                this.marshall=function(md,prefix,fid) { //{{{
    8787                        WriteData(fid,prefix,'object',this,'fieldname','spctemperature','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1);
    8888                        WriteData(fid,prefix,'object',this,'fieldname','penalty_threshold','format','Integer');
  • issm/trunk-jpl/src/m/classes/timestepping.js

    r20690 r20777  
    4949                        }
    5050                } // }}}
    51                 this.marshall=function(md,fid) { //{{{
     51                this.marshall=function(md,prefix,fid) { //{{{
    5252
    5353                        var scale;
  • issm/trunk-jpl/src/m/classes/trans.js

    r20690 r20777  
    6565                        checkfield(md,'fieldname','trans.requested_outputs','stringrow',1);
    6666                } // }}}
    67                 this.marshall=function(md,fid) { //{{{
     67                this.marshall=function(md,prefix,fid) { //{{{
     68
     69                        prefix='md.transient';
    6870                        WriteData(fid,prefix,'object',this,'fieldname','issmb','format','Boolean');
    6971                        WriteData(fid,prefix,'object',this,'fieldname','ismasstransport','format','Boolean');
  • issm/trunk-jpl/src/m/classes/verbose.js

    r20690 r20777  
    4343
    4444                } // }}}
    45                 this.marshall=function(md,fid) { //{{{
     45                this.marshall=function(md,prefix,fid) { //{{{
    4646                        WriteData(fid,prefix,'data',this.VerboseToBinary(),'name','md.verbose','format','Integer');
    4747                }//}}}
Note: See TracChangeset for help on using the changeset viewer.