Changeset 15899
- Timestamp:
- 08/23/13 10:54:08 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r15898 r15899 6494 6494 int dim; 6495 6495 IssmDouble Jdettria,D_scalar,dt,h; 6496 IssmDouble vel,vx,vy,dvxdx,dvydy; 6497 IssmDouble dvx[2],dvy[2]; 6496 IssmDouble vel,vx,vy; 6498 6497 IssmDouble xyz_list[NUMVERTICES][3]; 6499 6498 … … 6527 6526 vx_input->GetInputValue(&vx,gauss); 6528 6527 vy_input->GetInputValue(&vy,gauss); 6529 vx_input->GetInputDerivativeValue(&dvx[0],&xyz_list[0][0],gauss);6530 vy_input->GetInputDerivativeValue(&dvy[0],&xyz_list[0][0],gauss);6531 6528 6532 6529 D_scalar=gauss->weight*Jdettria; … … 6540 6537 GetBprimeMasstransport(Bprime,&xyz_list[0][0],gauss); 6541 6538 6542 dvxdx=dvx[0];6543 dvydy=dvy[1];6544 6539 D_scalar=dt*gauss->weight*Jdettria; 6545 6540 … … 6597 6592 int dim; 6598 6593 IssmDouble Jdettria,D_scalar,dt,h; 6599 IssmDouble vel,vx,vy,dvxdx,dvydy; 6600 IssmDouble dvx[2],dvy[2]; 6594 IssmDouble vel,vx,vy; 6601 6595 IssmDouble xyz_list[NUMVERTICES][3]; 6602 6596 … … 6630 6624 vx_input->GetInputValue(&vx,gauss); 6631 6625 vy_input->GetInputValue(&vy,gauss); 6632 vx_input->GetInputDerivativeValue(&dvx[0],&xyz_list[0][0],gauss);6633 vy_input->GetInputDerivativeValue(&dvy[0],&xyz_list[0][0],gauss);6634 6626 6635 6627 D_scalar=gauss->weight*Jdettria; … … 6643 6635 GetBprimeMasstransport(Bprime,&xyz_list[0][0],gauss); 6644 6636 6645 dvxdx=dvx[0];6646 dvydy=dvy[1];6647 6637 D_scalar=dt*gauss->weight*Jdettria; 6648 6638 … … 6820 6810 Input* vz_input = inputs->GetInput(VzEnum); _assert_(vz_input); 6821 6811 Input* ms_input = inputs->GetInput(SurfaceforcingsMassBalanceEnum); _assert_(ms_input); 6822 Input* surface_input= inputs->GetInput( ThicknessEnum);_assert_(surface_input);6812 Input* surface_input= inputs->GetInput(SurfaceEnum); _assert_(surface_input); 6823 6813 6824 6814 /*Initialize mb_correction to 0, do not forget!:*/ … … 6832 6822 GetNodalFunctions(basis,gauss); 6833 6823 6824 vz_input->GetInputValue(&vz,gauss); 6834 6825 ms_input->GetInputValue(&ms,gauss); 6835 6826 surface_input->GetInputValue(&surface,gauss); … … 6877 6868 GetNodalFunctions(basis,gauss); 6878 6869 6870 vz_input->GetInputValue(&vz,gauss); 6879 6871 mb_input->GetInputValue(&mb,gauss); 6880 6872 bed_input->GetInputValue(&bed,gauss);
Note:
See TracChangeset
for help on using the changeset viewer.