Changeset 4926 for issm/trunk/src/c/objects/Elements/Penta.cpp
- Timestamp:
- 08/02/10 13:22:55 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r4925 r4926 3377 3377 double ub,vb; 3378 3378 double surface,thickness; 3379 double slopex,slopey;3380 3379 3381 3380 /*flags: */ … … 3428 3427 /*Loop on the three segments*/ 3429 3428 for(i=0;i<3;i++){ 3430 slopex_input->GetParameterValue(&slope x, &gauss[i][0]);3431 slopey_input->GetParameterValue(&slope y, &gauss[i][0]);3429 slopex_input->GetParameterValue(&slope[0], &gauss[i][0]); 3430 slopey_input->GetParameterValue(&slope[1], &gauss[i][0]); 3432 3431 surface_input->GetParameterValue(&surface, &gauss[i][0]); 3433 3432 thickness_input->GetParameterValue(&thickness, &gauss[i][0]); 3434 3433 3435 3434 //compute slope2 slopex and slopey 3436 slope2=pow(slope x,2)+pow(slopey,2);3435 slope2=pow(slope[0],2)+pow(slope[1],2); 3437 3436 3438 3437 //%compute constant_part … … 3477 3476 //compute ub 3478 3477 constant_part=-1.58*pow((double)10.0,-(double)10.0)*rho_ice*gravity*thickness; 3479 ub=constant_part*slope x;3480 vb=constant_part*slope y;3478 ub=constant_part*slope[0]; 3479 vb=constant_part*slope[1]; 3481 3480 3482 3481 //Add to pe:
Note:
See TracChangeset
for help on using the changeset viewer.