Changeset 8539
- Timestamp:
- 06/07/11 16:43:09 (14 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Tria.cpp
r8538 r8539 885 885 if(slope_magnitude>MAXSLOPE) alpha2=pow((double)10,MOUNTAINKEXPONENT); 886 886 else friction->GetAlpha2(&alpha2, gauss,VxEnum,VyEnum,VzEnum); 887 _assert_(alpha2>=0); 887 888 888 889 GetL(&L[0][0], &xyz_list[0][0], gauss,NDOF2); … … 1622 1623 for(i=0;i<numdof;i++) pe->values[i]+=(thicknessobs-thickness)*weight*Jdet*gauss->weight*l1l2l3[i]; 1623 1624 /*Regularization of the constraint: 2000000 79 N*/ 1624 //for(i=0;i<numdof;i++) pe->values[i]+= - 1*100000*dH[0]*dbasis[0][i]*Jdet*gauss->weight;1625 //for(i=0;i<numdof;i++) pe->values[i]+= - 1*100000*dH[1]*dbasis[1][i]*weight*Jdet*gauss->weight;1625 for(i=0;i<numdof;i++) pe->values[i]+= - 1*100000*dH[0]*dbasis[0][i]*Jdet*gauss->weight; 1626 for(i=0;i<numdof;i++) pe->values[i]+= - 1*100000*dH[1]*dbasis[1][i]*Jdet*gauss->weight; 1626 1627 } 1627 1628 … … 5257 5258 double xyz_list[NUMVERTICES][3]; 5258 5259 GaussTria *gauss = NULL; 5260 double dbasis[NDOF2][NUMVERTICES]; 5261 double dH[2]; 5259 5262 5260 5263 /*If on water, return 0: */ … … 5277 5280 /* Get Jacobian determinant: */ 5278 5281 GetJacobianDeterminant2d(&Jdet, &xyz_list[0][0],gauss); 5282 GetNodalFunctionsDerivatives(&dbasis[0][0],&xyz_list[0][0],gauss); 5279 5283 5280 5284 /*Get parameters at gauss point*/ 5281 5285 thickness_input->GetParameterValue(&thickness,gauss); 5286 thickness_input->GetParameterDerivativeValue(&dH[0],&xyz_list[0][0],gauss); 5282 5287 thicknessobs_input->GetParameterValue(&thicknessobs,gauss); 5283 5288 weights_input->GetParameterValue(&weight,gauss); … … 5285 5290 /*compute ThicknessAbsMisfit*/ 5286 5291 Jelem+=0.5*pow(thickness-thicknessobs,2.0)*weight*Jdet*gauss->weight; 5292 Jelem+=0.5*100000*(pow(dH[0],2.)+pow(dH[1],2.))*Jdet*gauss->weight; 5287 5293 } 5288 5294 -
issm/trunk/src/c/objects/Materials/Matpar.cpp
r8538 r8539 410 410 /*}}}1*/ 411 411 /*FUNCTION Matqar::GetHydroQ {{{1*/ 412 double Mat qar::GetHydroQ(){412 double Matpar::GetHydroQ(){ 413 413 return hydro_q; 414 414 } -
issm/trunk/src/c/shared/Matlab/PrintfFunction.cpp
r8429 r8539 52 52 } 53 53 54 /*Ok, if we are running in paralle , get node 0 to print*/54 /*Ok, if we are running in parallel, get node 0 to print*/ 55 55 #if defined(_PARALLEL_) 56 56 if(my_rank==0)printf(buffer); -
issm/trunk/src/c/solutions/issm.cpp
r8429 r8539 82 82 if(control_analysis){ 83 83 #ifdef _HAVE_TAO_ 84 solutioncore=&controltao_core; 84 //solutioncore=&controltao_core; 85 solutioncore=&control_core; 85 86 #else 86 87 solutioncore=&control_core;
Note:
See TracChangeset
for help on using the changeset viewer.