source:
issm/oecreview/Archive/15392-16133/ISSM-15898-15899.diff
Last change on this file was 16134, checked in by , 12 years ago | |
---|---|
File size: 2.9 KB |
-
../trunk-jpl/src/c/classes/Elements/Tria.cpp
6493 6493 int stabilization; 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 6500 6499 /*Fetch number of nodes for this finite element*/ … … 6526 6525 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; 6533 6530 … … 6539 6536 GetBMasstransport(B,&xyz_list[0][0],gauss); 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 6546 6541 D[0][0]=D_scalar*vx; … … 6596 6591 int stabilization; 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 6603 6597 /*Fetch number of nodes for this finite element*/ … … 6629 6623 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; 6636 6628 … … 6642 6634 GetBMasstransport(B,&xyz_list[0][0],gauss); 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 6649 6639 D[0][0]=D_scalar*vx; … … 6819 6809 this->parameters->FindParam(&dt,TimesteppingTimeStepEnum); 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!:*/ 6825 6815 /* Start looping on the number of gaussian points: */ … … 6831 6821 GetJacobianDeterminant(&Jdettria, &xyz_list[0][0],gauss); 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); 6836 6827 … … 6876 6867 GetJacobianDeterminant(&Jdettria, &xyz_list[0][0],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); 6881 6873 if(mb_correction_input)
Note:
See TracBrowser
for help on using the repository browser.