Changeset 4846 for issm/trunk/src/c/objects/Elements/Tria.cpp
- Timestamp:
- 07/28/10 15:07:43 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.