Changeset 4846 for issm/trunk
- Timestamp:
- 07/28/10 15:07:43 (15 years ago)
- Location:
- issm/trunk/src/c/objects/Elements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r4840 r4846 2151 2151 GetDofList(&doflist[0],&dummy); 2152 2152 2153 /*Get node data: */2154 GetVerticesCoordinates(&xyz_list[0][0], nodes, numvertices);2155 2156 2153 /*Use the dof list to index into the solution vector: */ 2157 2154 for(i=0;i<numdof;i++){ … … 2174 2171 penta=this; 2175 2172 for(;;){ 2173 2174 /*Get node data: */ 2175 GetVerticesCoordinates(&xyz_list[0][0],penta->nodes,numvertices); 2176 2176 2177 2177 /*Now Compute vel*/ … … 2186 2186 2187 2187 /*Now compute pressure*/ 2188 inputs->GetParameterValues(&surface[0],&gauss[0][0],6,SurfaceEnum);2188 penta->inputs->GetParameterValues(&surface[0],&gauss[0][0],6,SurfaceEnum); 2189 2189 for(i=0;i<numvertices;i++){ 2190 2190 pressure[i]=rho_ice*g*(surface[i]-xyz_list[i][2]); … … 2448 2448 * status, otherwise, we'll wipe them off: */ 2449 2449 this->inputs->ChangeEnum(VzEnum,VzOldEnum); 2450 this->inputs->ChangeEnum(PressureEnum,PressureOldEnum); 2450 2451 2451 2452 /*Add vz and vel as inputs to the penta element: */ -
issm/trunk/src/c/objects/Elements/Tria.cpp
r4840 r4846 5792 5792 5793 5793 int dummy; 5794 Input* VzInput=NULL;5795 double* VzPtr=NULL;5794 Input* vz_input=NULL; 5795 double* vz_ptr=NULL; 5796 5796 5797 5797 /*Get dof list: */ … … 5810 5810 5811 5811 /*Get Vz*/ 5812 VzInput=inputs->GetInput(VzEnum);5813 if ( VzInput){5814 if ( VzInput->Enum()!=TriaVertexInputEnum){5815 ISSMERROR("Cannot compute Vel as Vz is of type %s",EnumAsString( VzInput->Enum()));5812 vz_input=inputs->GetInput(VzEnum); 5813 if (vz_input){ 5814 if (vz_input->Enum()!=TriaVertexInputEnum){ 5815 ISSMERROR("Cannot compute Vel as Vz is of type %s",EnumAsString(vz_input->Enum())); 5816 5816 } 5817 VzInput->GetValuesPtr(&VzPtr,&dummy);5818 for(i=0;i<numvertices;i++) vz[i]= VzPtr[i];5817 vz_input->GetValuesPtr(&vz_ptr,&dummy); 5818 for(i=0;i<numvertices;i++) vz[i]=vz_ptr[i]; 5819 5819 } 5820 5820 else{ … … 5870 5870 5871 5871 int dummy; 5872 Input* VzInput=NULL;5873 double* VzPtr=NULL;5872 Input* vz_input=NULL; 5873 double* vz_ptr=NULL; 5874 5874 5875 5875 /*Get dof list: */ … … 5888 5888 5889 5889 /*Get Vz*/ 5890 VzInput=inputs->GetInput(VzEnum);5891 if ( VzInput){5892 if ( VzInput->Enum()!=TriaVertexInputEnum){5893 ISSMERROR("Cannot compute Vel as Vz is of type %s",EnumAsString( VzInput->Enum()));5890 vz_input=inputs->GetInput(VzEnum); 5891 if (vz_input){ 5892 if (vz_input->Enum()!=TriaVertexInputEnum){ 5893 ISSMERROR("Cannot compute Vel as Vz is of type %s",EnumAsString(vz_input->Enum())); 5894 5894 } 5895 VzInput->GetValuesPtr(&VzPtr,&dummy);5896 for(i=0;i<numvertices;i++) vz[i]= VzPtr[i];5895 vz_input->GetValuesPtr(&vz_ptr,&dummy); 5896 for(i=0;i<numvertices;i++) vz[i]=vz_ptr[i]; 5897 5897 } 5898 5898 else{
Note:
See TracChangeset
for help on using the changeset viewer.