Changeset 23037
- Timestamp:
- 08/01/18 11:13:54 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/GLheightadvectionAnalysis.cpp
r22977 r23037 87 87 //Input* vx_input=element->GetInput(BaseSlopeXEnum); _assert_(vx_input); 88 88 //Input* vy_input=element->GetInput(BaseSlopeYEnum); _assert_(vy_input); 89 89 Input* vx_input=element->GetInput(VxEnum); _assert_(vx_input); 90 90 Input* vy_input=element->GetInput(VyEnum); _assert_(vy_input); 91 91 … … 105 105 106 106 /*Diffusion */ 107 if(sqrt(vx*vx+vy*vy)<10 ./31536000.){108 IssmPDouble kappa = 1.e-4;107 if(sqrt(vx*vx+vy*vy)<1000./31536000.){ 108 IssmPDouble kappa = -10; 109 109 for(int i=0;i<numnodes;i++){ 110 110 for(int j=0;j<numnodes;j++){ … … 113 113 } 114 114 } 115 116 115 /*Advection: */ 117 116 vx_input->GetInputValue(&vx,gauss); … … 119 118 for(int i=0;i<numnodes;i++){ 120 119 for(int j=0;j<numnodes;j++){ 121 Ke->values[i*numnodes+j] += D_scalar*(vx*dbasis[0*numnodes+j]*basis[i] + vy*dbasis[1*numnodes+j]*basis[i]);120 Ke->values[i*numnodes+j] += (D_scalar*(vx*dbasis[0*numnodes+j]*basis[i] + vy*dbasis[1*numnodes+j]*basis[i]))*1e-2; 122 121 } 123 122 }
Note:
See TracChangeset
for help on using the changeset viewer.