Changeset 16277
- Timestamp:
- 10/01/13 08:16:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r16275 r16277 4808 4808 4809 4809 /*Intermediaries */ 4810 int i,j;4811 int analysis_type;4812 IssmDouble xyz_list[NUMVERTICES][3];4813 IssmDouble xyz_list_tria[NUMVERTICES2D][3]={0.0};4814 IssmDouble Jdet2d,dt;4815 IssmDouble rho_ice,heatcapacity,geothermalflux_value;4816 IssmDouble basalfriction,alpha2,vx,vy;4817 IssmDouble basis[NUMVERTICES];4818 IssmDouble scalar;4819 Friction* friction=NULL;4810 int i,j; 4811 int analysis_type; 4812 IssmDouble xyz_list[NUMVERTICES][3]; 4813 IssmDouble xyz_list_tria[NUMVERTICES2D][3]={0.0}; 4814 IssmDouble Jdet2d,dt; 4815 IssmDouble rho_ice,heatcapacity,geothermalflux_value; 4816 IssmDouble basalfriction,alpha2,vx,vy; 4817 IssmDouble basis[NUMVERTICES]; 4818 IssmDouble scalar; 4819 Friction* friction=NULL; 4820 4820 GaussPenta* gauss=NULL; 4821 4821 … … 4880 4880 IssmDouble B_average,s_average; 4881 4881 int *doflist = NULL; 4882 IssmDouble pressure[numdof];4882 bool hack = false; 4883 4883 4884 4884 /*Get dof list: */ … … 4888 4888 for(i=0;i<numdof;i++){ 4889 4889 values[i]=solution[doflist[i]]; 4890 GetInputListOnVertices(&pressure[0],PressureEnum);4891 if(values[i]>matpar->TMeltingPoint(pressure[i])) values[i]=matpar->TMeltingPoint(pressure[i]);4892 if(values[i]<matpar->TMeltingPoint(pressure[i])-50) values[i]=matpar->TMeltingPoint(pressure[i])-50;4893 4890 4894 4891 /*Check solution*/ … … 4897 4894 //if(values[i]>275) _printf_("temperature > 275°K found in solution vector (Paterson's rheology associated is negative)\n"); 4898 4895 } 4896 4897 if(hack){ 4898 /*Force temperature between [Tpmp-50 Tpmp] to disable penalties*/ 4899 IssmDouble pressure[numdof]; 4900 GetInputListOnVertices(&pressure[0],PressureEnum); 4901 if(values[i]>matpar->TMeltingPoint(pressure[i])) values[i]=matpar->TMeltingPoint(pressure[i]); 4902 if(values[i]<matpar->TMeltingPoint(pressure[i])-50.) values[i]=matpar->TMeltingPoint(pressure[i])-50.; 4903 } 4904 4899 4905 4900 4906 /*Get all inputs and parameters*/
Note:
See TracChangeset
for help on using the changeset viewer.