Changeset 5280
- Timestamp:
- 08/16/10 11:35:46 (15 years ago)
- Location:
- issm/trunk/src/mex/CostFunction
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/CostFunction/CostFunction.cpp
r4974 r5280 8 8 9 9 /*input datasets: */ 10 Elements * elements=NULL;11 Loads * loads=NULL;12 Nodes * nodes=NULL;13 Vertices * vertices=NULL;14 Materials * materials=NULL;15 Parameters * parameters=NULL;16 bool process_units=false;10 Elements *elements = NULL; 11 Loads *loads = NULL; 12 Nodes *nodes = NULL; 13 Vertices *vertices = NULL; 14 Materials *materials = NULL; 15 Parameters *parameters = NULL; 16 int response; 17 17 18 18 /* output datasets: */ … … 32 32 FetchData((DataSet**)&materials,MATERIALS); 33 33 FetchParams(¶meters,PARAMETERS); 34 FetchData(&response,RESPONSE); 34 35 35 36 /*configure: */ … … 39 40 40 41 /*!Call core code: */ 41 CostFunctionx(&J, elements,nodes,vertices, loads,materials,parameters, process_units);42 CostFunctionx(&J, elements,nodes,vertices, loads,materials,parameters,response); 42 43 43 44 /*write output : */ … … 59 60 { 60 61 _printf_("\n"); 61 _printf_(" usage: [J] = %s(elements,nodes,vertices,loads, materials, parameters );\n",__FUNCT__);62 _printf_(" usage: [J] = %s(elements,nodes,vertices,loads, materials, parameters,response);\n",__FUNCT__); 62 63 _printf_("\n"); 63 64 } -
issm/trunk/src/mex/CostFunction/CostFunction.h
r4236 r5280 23 23 #define MATERIALS (mxArray*)prhs[4] 24 24 #define PARAMETERS (mxArray*)prhs[5] 25 #define RESPONSE (mxArray*)prhs[6] 25 26 26 27 /* serial output macros: */ … … 31 32 #define NLHS 1 32 33 #undef NRHS 33 #define NRHS 634 #define NRHS 7 34 35 35 36 #endif /* _COSTFUNCTION_H */
Note:
See TracChangeset
for help on using the changeset viewer.