Changeset 17287
- Timestamp:
- 02/15/14 14:46:22 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp ¶
r17277 r17287 6 6 #include "../solutionsequences/solutionsequences.h" 7 7 8 //#define FSANALYTICAL 2 8 #define FSANALYTICAL 3 9 9 10 10 /*Model processing*/ … … 409 409 if(nodeonbed[i]>0. && groundedice_ls[i]>0. && nodeonFS[i]>0.){ 410 410 if(vertices_type[i] == FSApproximationEnum){ 411 for(j=0;j<Nz;j++) spcvz[i*Nz+j] = 0.;411 // for(j=0;j<Nz;j++) spcvz[i*Nz+j] = 0.; 412 412 } 413 413 else{ … … 2859 2859 switch(meshtype){ 2860 2860 case Mesh3DEnum: dim = 3; break; 2861 case Mesh2DverticalEnum: dim = 2; break; 2861 2862 default: _error_("mesh "<<EnumToStringx(meshtype)<<" not supported yet"); 2862 2863 } … … 2889 2890 x_coord=element->GetXcoord(gauss); 2890 2891 y_coord=element->GetYcoord(gauss); 2891 z_coord=element->GetZcoord(gauss);2892 if(dim==3) z_coord=element->GetZcoord(gauss); 2892 2893 2893 2894 #if FSANALYTICAL == 1 … … 2899 2900 forcey=fy2(x_coord,y_coord,z_coord); 2900 2901 forcez=fz2(x_coord,y_coord,z_coord); 2902 #elif FSANALYTICAL == 3 2903 forcex=fx3(x_coord,y_coord); 2904 forcey=fy3(x_coord,y_coord); 2901 2905 #else 2902 2906 _error_("FS analytical not implemented yet"); … … 2906 2910 pe->values[i*dim+0] += forcex *Jdet*gauss->weight*vbasis[i]; 2907 2911 pe->values[i*dim+1] += forcey *Jdet*gauss->weight*vbasis[i]; 2908 pe->values[i*dim+2] += forcez *Jdet*gauss->weight*vbasis[i];2912 if(dim==3) pe->values[i*dim+2] += forcez *Jdet*gauss->weight*vbasis[i]; 2909 2913 } 2910 2914 }
Note:
See TracChangeset
for help on using the changeset viewer.