Changeset 20777
- Timestamp:
- 06/19/16 11:57:24 (9 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/SMBforcing.js
r20690 r20777 39 39 40 40 } // }}} 41 this.marshall=function(md, fid) { //{{{41 this.marshall=function(md,prefix,fid) { //{{{ 42 42 43 43 var yts=365.0*24.0*3600.0; -
issm/trunk-jpl/src/m/classes/autodiff.js
r20690 r20777 60 60 } 61 61 } // }}} 62 this.marshall=function(md, fid) { //{{{62 this.marshall=function(md,prefix,fid) { //{{{ 63 63 64 64 WriteData(fid,prefix,'object',this,'fieldname','isautodiff','format','Boolean'); -
issm/trunk-jpl/src/m/classes/balancethickness.js
r20690 r20777 33 33 //checkfield(md,'fieldname','balancethickness.omega','size',[md.mesh.numberofvertices ,1],'NaN',1,'Inf',1,'>=',0); 34 34 } //}}} 35 this.marshall=function(md, fid) { //{{{35 this.marshall=function(md,prefix,fid) { //{{{ 36 36 37 37 var yts=365.0*24.0*3600.0; -
issm/trunk-jpl/src/m/classes/basalforcings.js
r20690 r20777 54 54 } 55 55 } // }}} 56 this.marshall=function(md, fid) { //{{{56 this.marshall=function(md,prefix,fid) { //{{{ 57 57 58 58 var yts=365.0*24.0*3600.0; -
issm/trunk-jpl/src/m/classes/calving.js
r20690 r20777 26 26 checkfield(md,'fieldname','calving.meltingrate(1:md.mesh.numberofvertices,:)','>=',0,'timeseries',1,'NaN',1,'Inf',1); 27 27 } //}}} 28 this.marshall=function(md, fid) { //{{{28 this.marshall=function(md,prefix,fid) { //{{{ 29 29 var yts=365.0*24.0*3600.0; 30 30 WriteData(fid,prefix,'name','md.calving.law','data',DefaultCalvingEnum(),'format','Integer'); -
issm/trunk-jpl/src/m/classes/constants.js
r20690 r20777 41 41 42 42 } // }}} 43 this.marshall=function(md, fid) { //{{{43 this.marshall=function(md,prefix,fid) { //{{{ 44 44 WriteData(fid,prefix,'object',this,'fieldname','g','format','Double'); 45 45 WriteData(fid,prefix,'object',this,'fieldname','yts','format','Double'); -
issm/trunk-jpl/src/m/classes/damage.js
r20690 r20777 92 92 } 93 93 } //}}} 94 this.marshall=function(md, fid) { //{{{94 this.marshall=function(md,prefix,fid) { //{{{ 95 95 96 96 WriteData(fid,prefix,'object',this,'fieldname','isdamage','format','Boolean'); -
issm/trunk-jpl/src/m/classes/debug.js
r20690 r20777 20 20 21 21 }// }}} 22 this.marshall=function(md, fid) { //{{{22 this.marshall=function(md,prefix,fid) { //{{{ 23 23 WriteData(fid,prefix,'object',this,'fieldname','profiling','format','Boolean'); 24 24 }//}}} -
issm/trunk-jpl/src/m/classes/flaim.js
r19787 r20777 25 25 console.log(sprintf('\n Optimization:')); 26 26 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].']); 30 28 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.']); 33 30 34 31 console.log(sprintf('\n Output:')); -
issm/trunk-jpl/src/m/classes/flowequation.js
r20690 r20777 90 90 } 91 91 } // }}} 92 this.marshall=function(md, fid) { //{{{92 this.marshall=function(md,prefix,fid) { //{{{ 93 93 WriteData(fid,prefix,'object',this,'fieldname','isSIA','format','Boolean'); 94 94 WriteData(fid,prefix,'object',this,'fieldname','isSSA','format','Boolean'); -
issm/trunk-jpl/src/m/classes/friction.js
r20690 r20777 29 29 30 30 } // }}} 31 this.marshall=function(md, fid) { //{{{31 this.marshall=function(md,prefix,fid) { //{{{ 32 32 var yts=365.0*24.0*3600.0; 33 33 -
issm/trunk-jpl/src/m/classes/geometry.js
r20690 r20777 39 39 } 40 40 } // }}} 41 this.marshall=function(md, fid) { //{{{41 this.marshall=function(md,prefix,fid) { //{{{ 42 42 WriteData(fid,prefix,'object',this,'fieldname','surface','format','DoubleMat','mattype',1); 43 43 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 44 44 } 45 45 } // }}} 46 this.marshall=function(md, fid) { //{{{46 this.marshall=function(md,prefix,fid) { //{{{ 47 47 WriteData(fid,prefix,'object',this,'fieldname','mantle_viscosity','format','DoubleMat','mattype',1); 48 48 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 40 40 } 41 41 } // }}} 42 this.marshall=function(md, fid) { //{{{42 this.marshall=function(md,prefix,fid) { //{{{ 43 43 WriteData(fid,prefix,'data',StringToEnum(this.migration),'name','md.groundingline.migration','format','Integer'); 44 44 }//}}} -
issm/trunk-jpl/src/m/classes/hydrologyshreve.js
r20690 r20777 36 36 37 37 } // }}} 38 this.marshall=function(md, fid) { //{{{38 this.marshall=function(md,prefix,fid) { //{{{ 39 39 WriteData(fid,prefix,'name','md.hydrology.model','data',HydrologyshreveEnum(),'format','Integer'); 40 40 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 81 81 } 82 82 } //}}} 83 this.marshall=function(md, fid) { //{{{83 this.marshall=function(md,prefix,fid) { //{{{ 84 84 85 85 var yts=365.0*24.0*3600.0; -
issm/trunk-jpl/src/m/classes/inversion.js
r20690 r20777 116 116 } 117 117 } // }}} 118 this.marshall=function(md, fid) { //{{{118 this.marshall=function(md,prefix,fid) { //{{{ 119 119 120 120 var yts=365.0*24.0*3600.0; -
issm/trunk-jpl/src/m/classes/levelset.js
r20690 r20777 31 31 checkfield(md,'fieldname','levelset.stabilization','values',[0,1,2]); 32 32 } //}}} 33 this.marshall=function(md, fid) { //{{{33 this.marshall=function(md,prefix,fid) { //{{{ 34 34 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); 36 36 WriteData(fid,prefix,'object',this,'fieldname','reinit_frequency','format','Integer'); 37 37 -
issm/trunk-jpl/src/m/classes/mask.js
r20690 r20777 51 51 } 52 52 } // }}} 53 this.marshall=function(md, fid) { //{{{53 this.marshall=function(md,prefix,fid) { //{{{ 54 54 WriteData(fid,prefix,'object',this,'fieldname','groundedice_levelset','format','DoubleMat','mattype',1); 55 55 WriteData(fid,prefix,'object',this,'fieldname','ice_levelset','format','DoubleMat','mattype',1); -
issm/trunk-jpl/src/m/classes/maskpsl.js
r20690 r20777 58 58 } 59 59 } // }}} 60 this.marshall=function(md, fid) { //{{{60 this.marshall=function(md,prefix,fid) { //{{{ 61 61 WriteData(fid,prefix,'object',this,'class','mask','fieldname','groundedice_levelset','format','DoubleMat','mattype',1); 62 62 WriteData(fid,prefix,'object',this,'class','mask','fieldname','ice_levelset','format','DoubleMat','mattype',1); -
issm/trunk-jpl/src/m/classes/masstransport.js
r20690 r20777 54 54 55 55 } // }}} 56 this.marshall=function(md, fid) { //{{{56 this.marshall=function(md,prefix,fid) { //{{{ 57 57 58 58 var yts=365.*24.*3600.; -
issm/trunk-jpl/src/m/classes/matice.js
r20690 r20777 108 108 109 109 } // }}} 110 this.marshall=function(md, fid) { //{{{110 this.marshall=function(md,prefix,fid) { //{{{ 111 111 WriteData(fid,prefix,'name','md.materials.type','data',MaticeEnum(),'format','Integer'); 112 112 WriteData(fid,prefix,'object',this,'class','materials','fieldname','rho_ice','format','Double'); -
issm/trunk-jpl/src/m/classes/mesh2d.js
r20690 r20777 79 79 } 80 80 } // }}} 81 this.marshall=function(md, fid) { //{{{81 this.marshall=function(md,prefix,fid) { //{{{ 82 82 WriteData(fid,prefix,'name','md.mesh.domain_type','data',StringToEnum('Domain' + this.domaintype()),'format','Integer'); 83 83 WriteData(fid,prefix,'name','md.mesh.domain_dimension','data',this.dimension(),'format','Integer'); -
issm/trunk-jpl/src/m/classes/mesh3dsurface.js
r20703 r20777 77 77 78 78 } // }}} 79 this.marshall=function( prefix,md,fid) { //{{{79 this.marshall=function(md,prefix,fid) { //{{{ 80 80 WriteData(fid,prefix,'name','md.mesh.domain_type','data',StringToEnum('Domain' + this.domaintype()),'format','Integer'); 81 81 WriteData(fid,prefix,'name','md.mesh.domain_dimension','data',this.dimension(),'format','Integer'); -
issm/trunk-jpl/src/m/classes/miscellaneous.js
r20690 r20777 24 24 checkfield(md,'fieldname','miscellaneous.name','empty',1); 25 25 }// }}} 26 this.marshall=function(md, fid) { //{{{26 this.marshall=function(md,prefix,fid) { //{{{ 27 27 WriteData(fid,prefix,'object',this,'fieldname','name','format','String'); 28 28 }//}}} -
issm/trunk-jpl/src/m/classes/outputdefinition.js
r20690 r20777 27 27 28 28 } // }}} 29 this.marshall=function(md, fid) { //{{{29 this.marshall=function(md,prefix,fid) { //{{{ 30 30 31 31 var enums=NewArrayFill(this.definitions.length,0); -
issm/trunk-jpl/src/m/classes/qmu.js
r20690 r20777 100 100 101 101 } // }}} 102 this.marshall=function(md, fid) { //{{{102 this.marshall=function(md,prefix,fid) { //{{{ 103 103 WriteData(fid,prefix,'object',this,'fieldname','isdakota','format','Boolean'); 104 104 if (!this.isdakota){ -
issm/trunk-jpl/src/m/classes/rifts.js
r20690 r20777 46 46 } 47 47 } //}}} 48 this.marshall=function(md, fid) { //{{{48 this.marshall=function(md,prefix,fid) { //{{{ 49 49 50 50 var numrifts; -
issm/trunk-jpl/src/m/classes/settings.js
r20690 r20777 59 59 checkfield(md,'fieldname','settings.waitonlock','numel',[1]); 60 60 } // }}} 61 this.marshall=function(md, fid) { //{{{61 this.marshall=function(md,prefix,fid) { //{{{ 62 62 WriteData(fid,prefix,'object',this,'fieldname','results_on_nodes','format','Boolean'); 63 63 WriteData(fid,prefix,'object',this,'fieldname','io_gather','format','Boolean'); -
issm/trunk-jpl/src/m/classes/slr.js
r20690 r20777 39 39 if(ArrayAnyEqual(ArrayIsMember(SealevelriseAnalysisEnum(),analyses),0))return; 40 40 41 md = checkfield(md,'fieldname','slr.deltathickness','NaN',1,'Inf',1,'size',[md.mesh.numberof vertices, 1]);41 md = checkfield(md,'fieldname','slr.deltathickness','NaN',1,'Inf',1,'size',[md.mesh.numberofelements, 1]); 42 42 md = checkfield(md,'fieldname','slr.sealevel','NaN',1,'Inf',1,'size',[md.mesh.numberofvertices, 1]); 43 43 md = checkfield(md,'fieldname','slr.love_h','NaN',1,'Inf',1); … … 83 83 fielddisplay(this,'requested_outputs','additional outputs requested'); 84 84 } //}}} 85 this.marshall=function(md, fid) { //{{{85 this.marshall=function(md,prefix,fid) { //{{{ 86 86 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'); 101 101 102 102 //process requested outputs -
issm/trunk-jpl/src/m/classes/steadystate.js
r20690 r20777 46 46 } 47 47 } // }}} 48 this.marshall=function(md, fid) { //{{{48 this.marshall=function(md,prefix,fid) { //{{{ 49 49 WriteData(fid,prefix,'object',this,'fieldname','reltol','format','Double'); 50 50 WriteData(fid,prefix,'object',this,'fieldname','maxiter','format','Integer'); -
issm/trunk-jpl/src/m/classes/stressbalance.js
r20690 r20777 136 136 } 137 137 } // }}} 138 this.marshall=function(md, fid) { //{{{138 this.marshall=function(md,prefix,fid) { //{{{ 139 139 140 140 WriteData(fid,prefix,'object',this,'class','stressbalance','fieldname','vertex_pairing','format','DoubleMat','mattype',3); -
issm/trunk-jpl/src/m/classes/thermal.js
r20690 r20777 84 84 checkfield(md,'fieldname','thermal.requested_outputs','stringrow',1); 85 85 } // }}} 86 this.marshall=function(md, fid) { //{{{86 this.marshall=function(md,prefix,fid) { //{{{ 87 87 WriteData(fid,prefix,'object',this,'fieldname','spctemperature','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1); 88 88 WriteData(fid,prefix,'object',this,'fieldname','penalty_threshold','format','Integer'); -
issm/trunk-jpl/src/m/classes/timestepping.js
r20690 r20777 49 49 } 50 50 } // }}} 51 this.marshall=function(md, fid) { //{{{51 this.marshall=function(md,prefix,fid) { //{{{ 52 52 53 53 var scale; -
issm/trunk-jpl/src/m/classes/trans.js
r20690 r20777 65 65 checkfield(md,'fieldname','trans.requested_outputs','stringrow',1); 66 66 } // }}} 67 this.marshall=function(md,fid) { //{{{ 67 this.marshall=function(md,prefix,fid) { //{{{ 68 69 prefix='md.transient'; 68 70 WriteData(fid,prefix,'object',this,'fieldname','issmb','format','Boolean'); 69 71 WriteData(fid,prefix,'object',this,'fieldname','ismasstransport','format','Boolean'); -
issm/trunk-jpl/src/m/classes/verbose.js
r20690 r20777 43 43 44 44 } // }}} 45 this.marshall=function(md, fid) { //{{{45 this.marshall=function(md,prefix,fid) { //{{{ 46 46 WriteData(fid,prefix,'data',this.VerboseToBinary(),'name','md.verbose','format','Integer'); 47 47 }//}}}
Note:
See TracChangeset
for help on using the changeset viewer.