Changeset 4099
- Timestamp:
- 06/21/10 16:27:38 (15 years ago)
- Location:
- issm/trunk/src/mex
- Files:
-
- 9 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/CostFunction/CostFunction.cpp
r3841 r4099 17 17 DataSet* materials=NULL; 18 18 Parameters* parameters=NULL; 19 int analysis_type;20 int sub_analysis_type;21 19 22 20 /* output datasets: */ … … 36 34 FetchData(&materials,MATERIALS); 37 35 FetchParams(¶meters,PARAMETERS); 38 FetchData(&analysis_type,ANALYSIS);39 FetchData(&sub_analysis_type,SUBANALYSIS);40 36 41 37 /*!Call core code: */ 42 CostFunctionx(&J, elements,nodes,vertices, loads,materials,parameters ,analysis_type,sub_analysis_type);38 CostFunctionx(&J, elements,nodes,vertices, loads,materials,parameters); 43 39 44 40 /*write output : */ -
issm/trunk/src/mex/CostFunction/CostFunction.h
r3913 r4099 23 23 #define MATERIALS (mxArray*)prhs[4] 24 24 #define PARAMETERS (mxArray*)prhs[5] 25 #define ANALYSIS (mxArray*)prhs[6]26 #define SUBANALYSIS (mxArray*)prhs[7]27 25 28 26 /* serial output macros: */ … … 33 31 #define NLHS 1 34 32 #undef NRHS 35 #define NRHS 833 #define NRHS 6 36 34 37 #endif /* _ MISFIT_H */35 #endif /* _COSTFUNCTION_H */ 38 36 39 37 -
issm/trunk/src/mex/Du/Du.cpp
r3715 r4099 17 17 DataSet* materials=NULL; 18 18 Parameters* parameters=NULL; 19 int analysis_type;20 int sub_analysis_type;21 19 22 20 /* output datasets: */ … … 36 34 FetchData(&materials,MATERIALS); 37 35 FetchParams(¶meters,PARAMETERS); 38 FetchData(&analysis_type,ANALYSIS);39 FetchData(&sub_analysis_type,SUBANALYSIS);40 36 41 37 /*!Call core code: */ 42 Dux(&du_g, elements,nodes,vertices, loads,materials,parameters ,analysis_type,sub_analysis_type);38 Dux(&du_g, elements,nodes,vertices, loads,materials,parameters); 43 39 44 40 /*write output : */ -
issm/trunk/src/mex/Du/Du.h
r3913 r4099 23 23 #define MATERIALS (mxArray*)prhs[4] 24 24 #define PARAMETERS (mxArray*)prhs[5] 25 #define ANALYSIS (mxArray*)prhs[6]26 #define SUBANALYSIS (mxArray*)prhs[7]27 25 28 26 /* serial output macros: */ … … 33 31 #define NLHS 1 34 32 #undef NRHS 35 #define NRHS 833 #define NRHS 6 36 34 37 35 #endif /* _DU_H */ -
issm/trunk/src/mex/Makefile.am
r4095 r4099 15 15 ContourToMesh \ 16 16 ContourToNodes \ 17 ControlConstrain \17 InputControlConstrain \ 18 18 CostFunction \ 19 19 InputDepthAverage\ … … 120 120 ControlOptimization/ControlOptimization.h 121 121 122 ControlConstrain_SOURCES = ControlConstrain/ControlConstrain.cpp\123 ControlConstrain/ControlConstrain.h122 InputControlConstrain_SOURCES = InputControlConstrain/InputControlConstrain.cpp\ 123 InputControlConstrain/InputControlConstrain.h 124 124 125 125 CostFunction_SOURCES = CostFunction/CostFunction.cpp \ -
issm/trunk/src/mex/NodesDof/NodesDof.cpp
r4002 r4099 8 8 9 9 /*input datasets: */ 10 DataSet* vertices=NULL;11 Parameters* param s=NULL;10 DataSet* nodes=NULL; 11 Parameters* parameters=NULL; 12 12 13 13 /*Boot module: */ … … 19 19 /*Input datasets: */ 20 20 FetchData(&nodes,NODESIN); 21 FetchData((DataSet**)¶m s,PARAMS);21 FetchData((DataSet**)¶meters,PARAMETERS); 22 22 23 23 /*!Generate internal degree of freedom numbers: */ 24 NodesDofx(nodes, param s);24 NodesDofx(nodes, parameters); 25 25 26 26 /*write output datasets: */ … … 29 29 /*Free ressources: */ 30 30 delete nodes; 31 delete param s;31 delete parameters; 32 32 /*end module: */ 33 33 MODULEEND(); … … 37 37 { 38 38 _printf_("\n"); 39 _printf_(" usage: [nodes] = %s(nodes,param s);\n",__FUNCT__);39 _printf_(" usage: [nodes] = %s(nodes,parameters);\n",__FUNCT__); 40 40 _printf_("\n"); 41 41 } -
issm/trunk/src/mex/NodesDof/NodesDof.h
r4002 r4099 20 20 /* serial input macros: */ 21 21 #define NODESIN (mxArray*)prhs[0] 22 #define PARAM S (mxArray*)prhs[1]22 #define PARAMETERS (mxArray*)prhs[1] 23 23 24 24 /* serial output macros: */ -
issm/trunk/src/mex/VerticesDof/VerticesDof.cpp
r4002 r4099 12 12 /*input datasets: */ 13 13 DataSet* vertices=NULL; 14 Parameters* param s=NULL;14 Parameters* parameters=NULL; 15 15 16 16 /* output datasets: */ 17 VerticesDofVec* partition=NULL;18 VerticesDofVec* tpartition=NULL;17 DofVec* partition=NULL; 18 DofVec* tpartition=NULL; 19 19 20 20 /*Boot module: */ … … 26 26 /*Input datasets: */ 27 27 FetchData(&vertices,VERTICESIN); 28 FetchData((DataSet**)¶m s,PARAMS);28 FetchData((DataSet**)¶meters,PARAMETERS); 29 29 30 30 /*!Generate internal degree of freedom numbers: */ 31 VerticesDofx(&partition, &tpartition, vertices, param s);31 VerticesDofx(&partition, &tpartition, vertices, parameters); 32 32 33 33 /*partition and tpartition should be incremented by 1: */ … … 42 42 /*Free ressources: */ 43 43 delete vertices; 44 delete param s;44 delete parameters; 45 45 delete partition; 46 46 delete tpartition; … … 53 53 { 54 54 _printf_("\n"); 55 _printf_(" usage: [vertices,part,tpart] = %s(vertices,param s);\n",__FUNCT__);55 _printf_(" usage: [vertices,part,tpart] = %s(vertices,parameters);\n",__FUNCT__); 56 56 _printf_("\n"); 57 57 } -
issm/trunk/src/mex/VerticesDof/VerticesDof.h
r4002 r4099 20 20 /* serial input macros: */ 21 21 #define VERTICESIN (mxArray*)prhs[0] 22 #define PARAM S (mxArray*)prhs[1]22 #define PARAMETERS (mxArray*)prhs[1] 23 23 24 24 /* serial output macros: */
Note:
See TracChangeset
for help on using the changeset viewer.