Changeset 20838
- Timestamp:
- 07/01/16 11:55:41 (9 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/jenkins/javascript/karma/karma.conf.js
r20832 r20838 42 42 'lib/bin/project3d.js', 43 43 'lib/bin/model.js', 44 //'scripts/specs/ temp.spec.js'45 'scripts/specs/ issm-ajax.spec.js'44 //'scripts/specs/issm.spec.js' 45 'scripts/specs/temp.spec.js' 46 46 //'scripts/specs/3.spec.js' 47 47 ], … … 92 92 // Continuous Integration mode 93 93 // if true, Karma captures browsers, runs the tests and exits 94 singleRun: true,94 singleRun: false, 95 95 96 96 // Concurrency level -
issm/trunk-jpl/jenkins/javascript/karma/scripts/test102.js
r20767 r20838 2 2 var md = new model(); 3 3 4 console.log(md.results);5 4 triangle(md,square[0],180000.); 5 6 6 setmask(md,'all',''); 7 7 parameterize(md); … … 9 9 md.extrude(md,3,2.); 10 10 setflowequation(md,'SSA','all'); 11 console.log(md.results);12 11 //md.cluster=generic('name',oshostname(),'np',3); 13 12 md=solve(md,StressbalanceSolutionEnum()); -
issm/trunk-jpl/jenkins/javascript/karma/scripts/test109.js
r20767 r20838 7 7 setflowequation(md,'SSA','all'); 8 8 //md.cluster=generic('name',oshostname(),'np',3); 9 md.trans ient.isstressbalance=0;10 md.trans ient.ismasstransport=0;11 md.trans ient.issmb=1;12 md.trans ient.isthermal=1;13 md.trans ient.isgroundingline=0;9 md.trans.isstressbalance=0; 10 md.trans.ismasstransport=0; 11 md.trans.issmb=1; 12 md.trans.isthermal=1; 13 md.trans.isgroundingline=0; 14 14 md=solve(md,TransientSolutionEnum()); 15 15 -
issm/trunk-jpl/src/m/classes/flowequation.js
r20807 r20838 38 38 39 39 }// }}} 40 this.extrude = function(md) { 40 this.extrude = function(md) {//{{{ 41 41 this.element_equation=project3d(md,'vector',this.element_equation,'type','element'); 42 42 this.vertex_equation=project3d(md,'vector',this.vertex_equation,'type','node'); … … 45 45 this.borderFS=project3d(md,'vector',this.borderFS,'type','node'); 46 46 return this; 47 } 47 }//}}} 48 48 this.checkconsistency = function(md,solution,analyses) {//{{{ 49 49 -
issm/trunk-jpl/src/m/classes/friction.js
r20806 r20838 16 16 } // }}} 17 17 this.extrude = function(md) {//{{{ 18 self.coefficient = project3d(md, 'vector', self.coefficient, 'type', 'node', 'layer', 1);19 self.p = project3d(md, 'vector', self.p, 'type', 'element');20 self.q = project3d(md, 'vector', self.q, 'type', 'element');18 this.coefficient = project3d(md, 'vector', this.coefficient, 'type', 'node', 'layer', 1); 19 this.p = project3d(md, 'vector', this.p, 'type', 'element'); 20 this.q = project3d(md, 'vector', this.q, 'type', 'element'); 21 21 return this; 22 22 }//}}} -
issm/trunk-jpl/src/m/classes/masstransport.js
r20812 r20838 41 41 return "masstransport"; 42 42 }// }}} 43 this.extrude = function(md) { 43 this.extrude = function(md) {//{{{ 44 44 this.spcthickness=project3d(md,'vector',this.spcthickness,'type','node'); 45 45 return this; 46 } 46 }//}}} 47 47 this.checkconsistency = function (md,solution,analyses){ // {{{ 48 48 -
issm/trunk-jpl/src/m/classes/matice.js
r20817 r20838 84 84 85 85 } // }}} 86 this.extrude = function(md) { 86 this.extrude = function(md) {//{{{ 87 87 this.rheology_B=project3d(md,'vector',this.rheology_B,'type','node'); 88 88 this.rheology_n=project3d(md,'vector',this.rheology_n,'type','element'); 89 89 return this; 90 } 90 }//}}} 91 91 this.classname = function() {// {{{ 92 92 return "matice"; -
issm/trunk-jpl/src/m/classes/model.js
r20825 r20838 152 152 }).sort(); 153 153 154 console.log("extrusionlist is " + extrusionlist) //@REMOVE155 156 154 numlayers=extrusionlist.length; 157 155 } else if (argc==3) { //one polynomial law … … 210 208 211 209 //Initialize with the 2d mesh 212 mesh2d = md.mesh;210 var mesh2d = md.mesh; 213 211 md.mesh=new mesh3dprisms(); 214 212 -
issm/trunk-jpl/src/m/classes/qmu.js
r20824 r20838 91 91 }// }}} 92 92 this.extrude = function(md) {//{{{ 93 console.log("ORIGINAL");94 console.log(this.partition);95 console.log("TRANSPOSE");96 console.log(math.transpose(this.partition));97 93 this.partition=project3d(md,'vector',math.transpose(this.partition),'type','node'); 98 94 return this; -
issm/trunk-jpl/src/m/extrusion/project3d.js
r20832 r20838 48 48 paddingvalue = options.getfieldvalue('padding',0); //0 by default 49 49 50 if (isNaN(vector2d) || vector2d .length === 1) { // NaN treated as length 1 in MATLAB50 if (isNaN(vector2d) || vector2d === 0 || vector2d.length === 1) { // NaN treated as length 1 in MATLAB 51 51 projected_vector=vector2d; 52 52 } else if (type.toLowerCase() === 'node') { 53 53 54 54 //Initialize 3d vector 55 console.log(vector2d.length + " " + md.mesh.numberofvertices2d);56 55 if (vector2d.length===md.mesh.numberofvertices2d) { 57 56 projected_vector=ones(md.mesh.numberofvertices, vector2d[0].length).map(function(arr) { return arr.fill(paddingvalue); });
Note:
See TracChangeset
for help on using the changeset viewer.