Changeset 398
- Timestamp:
- 05/13/09 15:45:43 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Tria.cpp
r391 r398 1674 1674 gauss_l1l2l3[2]=*(third_gauss_area_coord+ig); 1675 1675 1676 1677 /*Compute velocities at gaussian point: */1678 GetParameterValue(&velocity_x, &vx_list[0],gauss_l1l2l3);1679 GetParameterValue(&velocity_y, &vy_list[0],gauss_l1l2l3);1680 #ifdef _DEBUG_1681 printf("Velocity: %lf %lf\n", velocity_x,velocity_y);1682 #endif1683 1684 /*Compute obs_velocities at gaussian point: */1685 GetParameterValue(&obs_velocity_x, &obs_vx_list[0],gauss_l1l2l3);1686 GetParameterValue(&obs_velocity_y, &obs_vy_list[0],gauss_l1l2l3);1687 #ifdef _DEBUG_1688 printf("Observed velocity: %g %g\n", obs_velocity_x,obs_velocity_y);1689 #endif1690 1691 1676 /* Get Jacobian determinant: */ 1692 1677 GetJacobianDeterminant2d(&Jdet, &xyz_list[0][0],gauss_l1l2l3); … … 1948 1933 /*Build gradje_g_gaussian vector (actually -dJ/ddrag): */ 1949 1934 for (i=0;i<numgrids;i++){ 1950 grade_g_gaussian[i]= 2*drag*alpha_complement*((lambda*vx+mu*vy))*Jdet*gauss_weight*l1l2l3[i];1935 grade_g_gaussian[i]=-2*drag*alpha_complement*((lambda*vx+mu*vy))*Jdet*gauss_weight*l1l2l3[i]; 1951 1936 } 1952 1937
Note:
See TracChangeset
for help on using the changeset viewer.