Changeset 15787
- Timestamp:
- 08/10/13 07:22:20 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r15785 r15787 1014 1014 1015 1015 /*Assign output pointers:*/ 1016 xDelete<int>(doflist);1017 1016 *pdoflist=doflist; 1018 1017 } … … 2974 2973 void Penta::ResetCoordinateSystem(void){ 2975 2974 2976 int approximation; 2977 IssmDouble slopex[NUMVERTICES]; 2978 IssmDouble slopey[NUMVERTICES]; 2975 int approximation; 2979 2976 IssmDouble xz_plane[6]; 2980 2977 … … 2983 2980 if(IsFloating() || !IsOnBed() || (approximation!=FSApproximationEnum && approximation!=SSAFSApproximationEnum && approximation!=HOFSApproximationEnum)) return; 2984 2981 2982 /*Get number of nodes for velocity only and base*/ 2983 int numnodes = this->NumberofNodesVelocity(); 2984 IssmDouble* slopex = xNew<IssmDouble>(numnodes); 2985 IssmDouble* slopey = xNew<IssmDouble>(numnodes); 2986 2985 2987 /*Get slope on each node*/ 2986 GetInputListOn Vertices(&slopex[0],BedSlopeXEnum);2987 GetInputListOn Vertices(&slopey[0],BedSlopeYEnum);2988 2989 /*Loop over basal nodes (first 3)and update their CS*/2990 for(int i=0;i< NUMVERTICES2D;i++){2988 GetInputListOnNodes(slopex,BedSlopeXEnum); 2989 GetInputListOnNodes(slopey,BedSlopeYEnum); 2990 2991 /*Loop over basal nodes and update their CS*/ 2992 for(int i=0;i<3;i++){//FIXME 2991 2993 2992 2994 /*New X axis New Z axis*/ … … 2997 2999 XZvectorsToCoordinateSystem(&this->nodes[i]->coord_system[0][0],&xz_plane[0]); 2998 3000 } 3001 3002 /*cleanup*/ 3003 xDelete<IssmDouble>(slopex); 3004 xDelete<IssmDouble>(slopey); 2999 3005 } 3000 3006 /*}}}*/ … … 10048 10054 xDelete<int>(doflistm); 10049 10055 xDelete<int>(doflists); 10056 xDelete<int>(doflistpressure); 10050 10057 } 10051 10058 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.