source:
issm/oecreview/Archive/19101-20495/ISSM-19836-19837.diff@
20498
Last change on this file since 20498 was 20498, checked in by , 9 years ago | |
---|---|
File size: 1.3 KB |
-
../trunk-jpl/src/m/boundaryconditions/SetIceShelfBC.js
17 17 //node on Dirichlet (boundary and ~icefront) 18 18 if (arguments.length==2){ 19 19 icefront=arguments[1]; 20 nodeinsideicefront=ContourToMesh(md.mesh.elements,md.mesh.x,md.mesh.y,icefront file,'node',2);20 nodeinsideicefront=ContourToMesh(md.mesh.elements,md.mesh.x,md.mesh.y,icefront,'node',2); 21 21 nodeonicefront=ArrayAnd(md.mesh.vertexonboundary,nodeinsideicefront); 22 22 } 23 23 else if(arguments.length==1){ … … 51 51 var obs=false; 52 52 if((md.inversion.vx_obs.length == md.mesh.numberofvertices) & (md.inversion.vy_obs.length==md.mesh.numberofvertices))obs=true; 53 53 54 55 54 if(obs==true){ 56 55 console.log(' boundary conditions for stressbalance model: setting spc as observed velocities'); 57 56 } … … 61 60 for(var i=0;i<md.mesh.segments.length;i++){ 62 61 var sum=0; 63 62 for (var j=0;j<numbernodesfront;j++) sum+=md.mask.ice_levelset[md.mesh.segments[i][j]-1]; 64 if(sum!= numbernodesfront){63 if(sum!=0){ 65 64 for (var j=0;j<numbernodesfront;j++){ 66 65 if(obs==false){ 67 66 md.stressbalance.spcvx[md.mesh.segments[i][j]-1]=0;
Note:
See TracBrowser
for help on using the repository browser.