Changeset 20843
- Timestamp:
- 07/01/16 22:19:24 (9 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/SMBforcing.js
r20806 r20843 65 65 }//}}} 66 66 //properties 67 // {{{ 67 68 this.mass_balance = NaN; 68 69 this.requested_outputs = []; 69 70 this.setdefaultparameters(); 71 // }}} 70 72 } -
issm/trunk-jpl/src/m/classes/mesh3dprisms.js
r20832 r20843 5 5 6 6 function mesh3dprisms() { 7 this.setdefaultparameters = function() { // [[[)7 this.setdefaultparameters = function() { //{{{ 8 8 9 9 //the connectivity is the averaged number of nodes linked to a … … 13 13 //trunk/test/Miscellaneous/runme.m 14 14 this.average_vertex_connectivity=25; 15 } // ]]]15 } // }}} 16 16 17 this.checkconsistency = function(md,solution,analyses) { // [[[)17 this.checkconsistency = function(md,solution,analyses) { // {{{ 18 18 19 19 checkfield(md,'fieldname','mesh.x','NaN',1,'Inf',1,'size',[md.mesh.numberofvertices, 1]); … … 35 35 checkfield(md,'fieldname','mesh.z','<=',md.geometry.surface+Math.pow(10, -10),'message','\'mesh.z\' higher than surface elevation'); 36 36 checkfield(md,'fieldname','mesh.average_vertex_connectivity','>=',24,'message','\'mesh.average_vertex_connectivity\' should be at least 24 in 3d'); 37 } // ]]]38 function disp() { // [[[37 } // }}} 38 this.disp = function() { // {{{ 39 39 console.log(sprintf(' 3D prism Mesh:')); 40 40 … … 76 76 fielddisplay(this,'long','vertices longitude [degrees]'); 77 77 fielddisplay(this,'epsg','EPSG code (ex: 3413 for UPS Greenland, 3031 for UPS Antarctica)'); 78 } // ]]]79 function marshall(md,prefix,fid) { // [[[78 } // }}} 79 this.marshall = function(md,prefix,fid) { // {{{ 80 80 WriteData(fid,prefix,'enum',DomainTypeEnum(),'data',StringToEnum(['Domain' + this.domaintype()]),'format','Integer'); 81 81 WriteData(fid,prefix,'enum',DomainDimensionEnum(),'data',this.dimension(),'format','Integer'); … … 96 96 WriteData(fid,prefix,'object',this,'class','mesh','fieldname','numberofvertices2d','format','Integer'); 97 97 WriteData(fid,prefix,'object',this,'class','mesh','fieldname','numberofelements2d','format','Integer'); 98 } // ]]]98 } // }}} 99 99 this.fix=function() { //{{{ 100 100 //Transform objects into Float64Arrays: … … 111 111 this.long=NaNFix(this.long,NaN); 112 112 }//}}} 113 this.domaintype = function() { // [[[)113 this.domaintype = function() { // {{{ 114 114 return '3D'; 115 } // ]]]116 this.dimension = function() { // [[[)115 } // }}} 116 this.dimension = function() { // {{{ 117 117 return 3; 118 } // ]]]119 this.elementtype = function() { // [[[)118 } // }}} 119 this.elementtype = function() { // {{{ 120 120 return 'Penta'; 121 } // ]]]121 } // }}} 122 122 this.classname = function () { //{{{ 123 123 return "mesh3dprisms"; 124 124 } //}}} 125 125 126 //properties (SetAccess=public) 126 //properties 127 //{{{ 127 128 this.x = NaN; 128 129 this.y = NaN; … … 157 158 this.extractedvertices = NaN; 158 159 this.extractedelements = NaN; 160 //}}} 159 161 }
Note:
See TracChangeset
for help on using the changeset viewer.