Changeset 7175
- Timestamp:
- 01/26/11 08:27:48 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/InputUpdateFromVector/InputUpdateFromVector.cpp
r6412 r7175 16 16 double* vector=NULL; 17 17 int dummy; 18 int NameEnum;19 int TypeEnum;18 int name; 19 int type; 20 20 21 21 /*Boot module: */ … … 33 33 FetchParams(¶meters,PARAMETERSIN); 34 34 FetchData(&vector,&dummy,VECTOR); 35 FetchData(& NameEnum,NAME);36 FetchData(& TypeEnum,TYPE);35 FetchData(&name,NAME); 36 FetchData(&type,TYPE); 37 37 38 38 /*Check that type is one of Constant, Vertex or Element: */ 39 if (( TypeEnum!=ConstantEnum) && (TypeEnum!=VertexEnum) && (TypeEnum!=ElementEnum)){40 _error_("%s%s%s\n","Type of input can only be a constant, a vertex or an element vector. Right now, you input a ",EnumToString( TypeEnum)," type data for input update");39 if ((type!=ConstantEnum) && (type!=VertexEnum) && (type!=ElementEnum)){ 40 _error_("%s%s%s\n","Type of input can only be a constant, a vertex or an element vector. Right now, you input a ",EnumToString(type)," type data for input update"); 41 41 } 42 42 … … 47 47 48 48 /*!Generate internal degree of freedom numbers: */ 49 InputUpdateFromVectorx(elements,nodes,vertices,loads, materials,parameters,vector, NameEnum,TypeEnum);49 InputUpdateFromVectorx(elements,nodes,vertices,loads, materials,parameters,vector,name,type); 50 50 51 51 /*write output datasets: */
Note:
See TracChangeset
for help on using the changeset viewer.