Changeset 1810
- Timestamp:
- 08/24/09 17:37:24 (16 years ago)
- Location:
- issm/trunk/src/mex
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/ControlOptimization/ControlOptimization.cpp
r1184 r1810 24 24 25 25 /*arguments to objectivefunctionC: */ 26 mxArray* m =NULL;26 mxArray* models=NULL; 27 27 mxArray* pg=NULL; 28 28 mxArray* grad_g=NULL; … … 43 43 44 44 optargs.function_name=function_name; 45 optargs.m =MODEL;45 optargs.models=MODELS; 46 46 optargs.param_g=PG; 47 47 optargs.inputs=INPUTS; -
issm/trunk/src/mex/ControlOptimization/ControlOptimization.h
r1184 r1810 21 21 #define XMAX (mxArray*)prhs[2] 22 22 #define OPTIONS (mxArray*)prhs[3] 23 #define MODEL (mxArray*)prhs[4]23 #define MODELS (mxArray*)prhs[4] 24 24 #define INPUTS (mxArray*)prhs[5] 25 25 #define PG (mxArray*)prhs[6] -
issm/trunk/src/mex/ModelProcessor/ModelProcessor.cpp
r1629 r1810 20 20 21 21 /*input model: */ 22 Model*model=NULL;22 IoModel* iomodel=NULL; 23 23 24 24 /*Boot module: */ … … 28 28 CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&ModelProcessorUsage); 29 29 30 /*Fill model with matlab workspace data: */31 ModelInit(&model,MODEL); //this routine goes through the entire MODEL matlab class, and starts filling the corresponding "c" code model object.30 /*Fill iomodel with matlab workspace data: */ 31 IoModelInit(&iomodel,MODEL); //this routine goes through the entire MODEL matlab class, and starts filling the corresponding "c" code model object. 32 32 33 33 /*Create elements, nodes and materials: */ 34 CreateDataSets(&elements,&nodes,&materials,&constraints, &loads, ¶meters, model,MODEL);34 CreateDataSets(&elements,&nodes,&materials,&constraints, &loads, ¶meters, iomodel,MODEL); 35 35 36 36 /*Write output data: */ … … 44 44 45 45 /*Free ressources: */ 46 Delete Model(&model);46 DeleteIoModel(&iomodel); 47 47 delete elements; 48 48 delete nodes;
Note:
See TracChangeset
for help on using the changeset viewer.