Changeset 16013
- Timestamp:
- 08/29/13 10:45:40 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/balancevelocity_core.cpp
r16010 r16013 20 20 21 21 if(VerboseSolution()) _printf0_("call computational core:\n"); 22 femmodel->SetCurrentConfiguration(SurfaceSlopeAnalysisEnum,SmoothedSurfaceSlopeXAnalysisEnum); 23 solutionsequence_linear(femmodel); 24 femmodel->SetCurrentConfiguration(SurfaceSlopeAnalysisEnum,SmoothedSurfaceSlopeYAnalysisEnum); 25 solutionsequence_linear(femmodel); 22 //femmodel->SetCurrentConfiguration(SurfaceSlopeAnalysisEnum,SmoothedSurfaceSlopeXAnalysisEnum); 23 //solutionsequence_linear(femmodel); 24 //femmodel->SetCurrentConfiguration(SurfaceSlopeAnalysisEnum,SmoothedSurfaceSlopeYAnalysisEnum); 25 //solutionsequence_linear(femmodel); 26 surfaceslope_core(femmodel); 26 27 27 28 if(VerboseSolution()) _printf0_("call computational core:\n"); -
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r16012 r16013 992 992 vector[1]=xyz_list[1][1] - xyz_list[0][1]; 993 993 994 norm=sqrt( pow(vector[0],2.0)+pow(vector[1],2.0));994 norm=sqrt(vector[0]*vector[0] + vector[1]*vector[1]); 995 995 996 996 normal[0]= + vector[1]/norm; … … 7255 7255 GetInputListOnNodes(Ny,SurfaceSlopeYEnum); 7256 7256 for(int i=0;i<numnodes;i++){ 7257 IssmDouble norm=sqrt(Nx[i]*Nx[i]+Ny[i]*Ny[i] );7257 IssmDouble norm=sqrt(Nx[i]*Nx[i]+Ny[i]*Ny[i]+1.e-10); 7258 7258 Nx[i] = Nx[i]/norm; 7259 7259 Ny[i] = Ny[i]/norm; … … 7261 7261 7262 7262 /*Build HNx and HNy*/ 7263 GetInputListOnNodes(H, 7263 GetInputListOnNodes(H,ThicknessEnum); 7264 7264 for(int i=0;i<numnodes;i++){ 7265 7265 HNx[i]=H[i]*Nx[i]; … … 7292 7292 basis[i]*basis[j]*(dhnx[0]+dhny[1]) 7293 7293 + basis[i]*(dbasis[0*numnodes+j]*hnx + dbasis[1*numnodes+j]*hny) 7294 + gamma*(basis[j]*(dhnx[0]+dhny[1]) + dbasis[0*numnodes+j]*hnx + dbasis[1*numnodes+j]*hny)*7294 + gamma*(basis[j]*(dhnx[0]+dhny[1]) + dbasis[0*numnodes+j]*hnx + dbasis[1*numnodes+j]*hny)* 7295 7295 (basis[i]*(dhnx[0]+dhny[1]) + dbasis[0*numnodes+i]*hnx + dbasis[1*numnodes+i]*hny) 7296 7296 ); … … 7490 7490 GetInputListOnNodes(Ny,SurfaceSlopeYEnum); 7491 7491 for(int i=0;i<numnodes;i++){ 7492 IssmDouble norm=sqrt(Nx[i]*Nx[i]+Ny[i]*Ny[i] );7492 IssmDouble norm=sqrt(Nx[i]*Nx[i]+Ny[i]*Ny[i]+1.e-10); 7493 7493 Nx[i] = Nx[i]/norm; 7494 7494 Ny[i] = Ny[i]/norm; … … 7496 7496 7497 7497 /*Build HNx and HNy*/ 7498 GetInputListOnNodes(H, 7498 GetInputListOnNodes(H,ThicknessEnum); 7499 7499 for(int i=0;i<numnodes;i++){ 7500 7500 HNx[i]=H[i]*Nx[i];
Note:
See TracChangeset
for help on using the changeset viewer.