Changeset 17943
- Timestamp:
- 05/05/14 23:36:48 (11 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp
r17886 r17943 588 588 geothermalflux_input->GetInputValue(&geothermalflux,gauss); 589 589 590 friction->GetAlpha2(&alpha2,gauss ,vx_input,vy_input,vz_input);590 friction->GetAlpha2(&alpha2,gauss); 591 591 vx_input->GetInputValue(&vx,gauss); 592 592 vy_input->GetInputValue(&vy,gauss); … … 990 990 991 991 /*basal friction*/ 992 friction->GetAlpha2(&alpha2,gauss ,vx_input,vy_input,vz_input);992 friction->GetAlpha2(&alpha2,gauss); 993 993 vx_input->GetInputValue(&vx,gauss); 994 994 vy_input->GetInputValue(&vy,gauss); -
issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp
r17925 r17943 1221 1221 element->FindParam(&migration_style,GroundinglineMigrationEnum); 1222 1222 Input* surface_input = element->GetInput(SurfaceEnum); _assert_(surface_input); 1223 Input* vx_input = element->GetInput(VxEnum); _assert_(vx_input);1224 1223 Input* gllevelset_input = NULL; 1225 Input* vy_input = NULL;1226 if(dim==2){vy_input = element->GetInput(VyEnum); _assert_(vy_input);}1227 1224 1228 1225 /*build friction object, used later on: */ … … 1244 1241 gauss->GaussPoint(ig); 1245 1242 1246 friction->GetAlpha2(&alpha2, gauss,vx_input,vy_input,NULL);1243 friction->GetAlpha2(&alpha2,gauss); 1247 1244 if(migration_style==SubelementMigrationEnum) alpha2=phi*alpha2; 1248 1245 if(migration_style==SubelementMigration2Enum){ … … 2249 2246 element->GetVerticesCoordinatesBase(&xyz_list_base); 2250 2247 element->FindParam(&migration_style,GroundinglineMigrationEnum); 2251 Input* vx_input = element->GetInput(VxEnum); _assert_(vx_input);2252 Input* vy_input = element->GetInput(VyEnum); _assert_(vy_input);2253 Input* vz_input = NULL;2254 2248 Input* gllevelset_input = NULL; 2255 if(dim==3){vz_input=element->GetInput(VzEnum); _assert_(vz_input);}2256 2249 2257 2250 /*build friction object, used later on: */ … … 2274 2267 gauss->GaussPoint(ig); 2275 2268 2276 friction->GetAlpha2(&alpha2,gauss ,vx_input,vy_input,vz_input);2269 friction->GetAlpha2(&alpha2,gauss); 2277 2270 if(migration_style==SubelementMigrationEnum) alpha2=phi*alpha2; 2278 2271 if(migration_style==SubelementMigration2Enum){ … … 3222 3215 element->GetVerticesCoordinatesBase(&xyz_list_base); 3223 3216 element->FindParam(&migration_style,GroundinglineMigrationEnum); 3224 Input* vx_input = element->GetInput(VxEnum); _assert_(vx_input);3225 Input* vy_input = element->GetInput(VyEnum); _assert_(vy_input);3226 Input* vz_input = NULL;3227 if(dim==3){ vz_input = element->GetInput(VzEnum); _assert_(vz_input);}3228 3217 Input* gllevelset_input = NULL; 3229 3218 … … 3248 3237 gauss->GaussPoint(ig); 3249 3238 3250 friction->GetAlpha2(&alpha2,gauss ,vx_input,vy_input,vz_input);3239 friction->GetAlpha2(&alpha2,gauss); 3251 3240 if(migration_style==SubelementMigrationEnum) alpha2=phi*alpha2; 3252 3241 if(migration_style==SubelementMigration2Enum){ … … 4814 4803 /*retrieve inputs :*/ 4815 4804 element->GetVerticesCoordinatesBase(&xyz_list_tria); 4816 Input* vx_input=element->GetInput(VxEnum); _assert_(vx_input);4817 Input* vy_input=element->GetInput(VyEnum); _assert_(vy_input);4818 Input* vz_input=element->GetInput(VzEnum); _assert_(vz_input);4819 4805 4820 4806 /*build friction object, used later on: */ … … 4828 4814 4829 4815 /*Friction: */ 4830 friction->GetAlpha2(&alpha2,gauss ,vx_input,vy_input,vz_input);4816 friction->GetAlpha2(&alpha2,gauss); 4831 4817 element->JacobianDeterminantBase(&Jdet2d, xyz_list_tria,gauss); 4832 4818 this->GetBHOFriction(L,element,3,xyz_list_tria,gauss); … … 5039 5025 5040 5026 element->NormalBase(&bed_normal[0],xyz_list_tria); 5041 friction->GetAlpha2(&alpha2_gauss, gauss,vx_input,vy_input,vz_input);5027 friction->GetAlpha2(&alpha2_gauss,gauss); 5042 5028 5043 5029 DLSSAFS[0][0]=alpha2_gauss*gauss->weight*Jdet2d; … … 5319 5305 element->NormalBase(&bed_normal[0],xyz_list_tria); 5320 5306 element->ViscosityFS(&viscosity,dim,xyz_list,gauss,vx_input,vy_input,vz_input); 5321 friction->GetAlpha2(&alpha2_gauss, gauss,vx_input,vy_input,vz_input);5307 friction->GetAlpha2(&alpha2_gauss,gauss); 5322 5308 5323 5309 for(i=0;i<3;i++){ … … 5480 5466 element->NormalBase(&bed_normal[0],xyz_list_tria); 5481 5467 element->ViscosityFS(&viscosity,dim,xyz_list,gauss,vx_input,vy_input,vz_input); 5482 friction->GetAlpha2(&alpha2_gauss, gauss,vx_input,vy_input,vz_input);5468 friction->GetAlpha2(&alpha2_gauss,gauss); 5483 5469 5484 5470 for(i=0;i<3;i++){ -
issm/trunk-jpl/src/c/analyses/ThermalAnalysis.cpp
r17935 r17943 476 476 477 477 geothermalflux_input->GetInputValue(&geothermalflux,gauss); 478 friction->GetAlpha2(&alpha2,gauss ,vx_input,vy_input,vz_input);478 friction->GetAlpha2(&alpha2,gauss); 479 479 vx_input->GetInputValue(&vx,gauss); 480 480 vy_input->GetInputValue(&vy,gauss); -
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r17941 r17943 3234 3234 3235 3235 /*Build alpha_complement_list: */ 3236 friction->GetAlphaComplement(&alpha_complement,gauss ,vx_input,vy_input,NULL);3236 friction->GetAlphaComplement(&alpha_complement,gauss); 3237 3237 3238 3238 dragcoefficient_input->GetInputValue(&drag, gauss); … … 3306 3306 3307 3307 /*Recover alpha_complement and drag: */ 3308 friction->GetAlphaComplement(&alpha_complement,gauss ,vx_input,vy_input,vz_input);3308 friction->GetAlphaComplement(&alpha_complement,gauss); 3309 3309 drag_input->GetInputValue(&drag,gauss); 3310 3310 -
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r17941 r17943 3242 3242 3243 3243 /*Build alpha_complement_list: */ 3244 friction->GetAlphaComplement(&alpha_complement,gauss ,vx_input,vy_input,NULL);3244 friction->GetAlphaComplement(&alpha_complement,gauss); 3245 3245 3246 3246 dragcoefficient_input->GetInputValue(&drag, gauss); … … 3267 3267 //for (int iv=0;iv<NUMVERTICES;iv++){ 3268 3268 // gauss->GaussVertex(iv); 3269 // friction->GetAlphaComplement(&alpha_complement,gauss ,vx_input,vy_input,vz_input);3269 // friction->GetAlphaComplement(&alpha_complement,gauss); 3270 3270 // dragcoefficient_input->GetInputValue(&drag, gauss); 3271 3271 // adjointx_input->GetInputValue(&lambda, gauss); -
issm/trunk-jpl/src/c/classes/Loads/Friction.cpp
r17938 r17943 42 42 /*}}}*/ 43 43 /*FUNCTION Friction::GetAlpha2{{{*/ 44 void Friction::GetAlpha2(IssmDouble* palpha2, Gauss* gauss ,Input* vx_input,Input* vy_input,Input* vz_input){44 void Friction::GetAlpha2(IssmDouble* palpha2, Gauss* gauss){ 45 45 46 46 /*This routine calculates the basal friction coefficient … … 76 76 switch(dim){ 77 77 case 1: 78 vx_input->GetInputValue(&vx,gauss);78 element->GetInputValue(&vx,gauss,VxEnum); 79 79 vmag=sqrt(vx*vx); 80 80 break; 81 81 case 2: 82 vx_input->GetInputValue(&vx,gauss);83 vy_input->GetInputValue(&vy,gauss);82 element->GetInputValue(&vx,gauss,VxEnum); 83 element->GetInputValue(&vy,gauss,VyEnum); 84 84 vmag=sqrt(vx*vx+vy*vy); 85 85 break; 86 86 case 3: 87 vx_input->GetInputValue(&vx,gauss);88 vy_input->GetInputValue(&vy,gauss);89 vz_input->GetInputValue(&vz,gauss);87 element->GetInputValue(&vx,gauss,VxEnum); 88 element->GetInputValue(&vy,gauss,VyEnum); 89 element->GetInputValue(&vz,gauss,VzEnum); 90 90 vmag=sqrt(vx*vx+vy*vy+vz*vz); 91 91 break; … … 101 101 /*Assign output pointers:*/ 102 102 *palpha2=alpha2; 103 } 104 /*}}}*/ 103 }/*}}}*/ 105 104 /*FUNCTION Friction::GetAlphaComplement(IssmDouble* palpha_complement, Gauss* gauss,int vxenum,int vyenum,int vzenum) {{{*/ 106 void Friction::GetAlphaComplement(IssmDouble* palpha_complement, Gauss* gauss ,Input* vx_input,Input* vy_input,Input* vz_input){105 void Friction::GetAlphaComplement(IssmDouble* palpha_complement, Gauss* gauss){ 107 106 108 107 /* FrictionGetAlpha2 computes alpha2= drag^2 * Neff ^r * vel ^s, with Neff=rho_ice*g*thickness+rho_ice*g*bed, r=q/p and s=1/p. … … 140 139 switch(dim){ 141 140 case 1: 142 vx_input->GetInputValue(&vx,gauss);141 element->GetInputValue(&vx,gauss,VxEnum); 143 142 vmag=sqrt(vx*vx); 144 143 break; 145 144 case 2: 146 vx_input->GetInputValue(&vx,gauss);147 vy_input->GetInputValue(&vy,gauss);145 element->GetInputValue(&vx,gauss,VxEnum); 146 element->GetInputValue(&vy,gauss,VyEnum); 148 147 vmag=sqrt(vx*vx+vy*vy); 149 148 break; 150 149 case 3: 151 vx_input->GetInputValue(&vx,gauss);152 vy_input->GetInputValue(&vy,gauss);153 vz_input->GetInputValue(&vz,gauss);150 element->GetInputValue(&vx,gauss,VxEnum); 151 element->GetInputValue(&vy,gauss,VyEnum); 152 element->GetInputValue(&vz,gauss,VzEnum); 154 153 vmag=sqrt(vx*vx+vy*vy+vz*vz); 155 154 break; -
issm/trunk-jpl/src/c/classes/Loads/Friction.h
r16873 r17943 28 28 29 29 void Echo(void); 30 void GetAlpha2(IssmDouble* palpha2, Gauss* gauss,Input* vx_input,Input* vy_input,Input* vz_input);31 void GetAlphaComplement(IssmDouble* alpha_complement,Gauss* gauss ,Input* vx_input,Input* vy_input,Input* vz_input);30 void GetAlpha2(IssmDouble* palpha2,Gauss* gauss); 31 void GetAlphaComplement(IssmDouble* alpha_complement,Gauss* gauss); 32 32 }; 33 33
Note:
See TracChangeset
for help on using the changeset viewer.