- Timestamp:
- 10/11/10 10:05:52 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/ModelProcessorx/Control/CreateParametersControl.cpp
r6213 r6226 43 43 parameters->AddObject(new DoubleParam(MeanVelEnum,iomodel->meanvel)); 44 44 parameters->AddObject(new DoubleParam(CmNoiseDmpEnum,iomodel->cm_noisedmp)); 45 parameters->AddObject(new DoubleParam(CmMinEnum,iomodel->cm_min)); 46 parameters->AddObject(new DoubleParam(CmMaxEnum,iomodel->cm_max)); 45 47 46 parameters->AddObject(new BoolParam(CmGradientEnum,iomodel->cm_gradient)); 48 47 … … 50 49 IoModelFetchData(&iomodel->cm_responses,NULL,NULL,iomodel_handle,"cm_responses"); 51 50 IoModelFetchData(&iomodel->cm_jump,NULL,NULL,iomodel_handle,"cm_jump"); 51 IoModelFetchData(&iomodel->cm_min,NULL,NULL,iomodel_handle,"cm_min"); 52 IoModelFetchData(&iomodel->cm_max,NULL,NULL,iomodel_handle,"cm_max"); 52 53 IoModelFetchData(&iomodel->optscal,NULL,NULL,iomodel_handle,"optscal"); 53 54 IoModelFetchData(&iomodel->maxiter,NULL,NULL,iomodel_handle,"maxiter"); … … 55 56 parameters->AddObject(new DoubleVecParam(CmResponsesEnum,iomodel->cm_responses,iomodel->nsteps)); 56 57 parameters->AddObject(new DoubleVecParam(CmJumpEnum,iomodel->cm_jump,iomodel->nsteps)); 57 parameters->AddObject(new DoubleVecParam(OptScalEnum,iomodel->optscal,iomodel->nsteps)); 58 parameters->AddObject(new DoubleMatParam(OptScalEnum,iomodel->optscal,iomodel->nsteps,iomodel->num_control_type)); 59 parameters->AddObject(new DoubleVecParam(CmMinEnum,iomodel->cm_min,iomodel->num_control_type)); 60 parameters->AddObject(new DoubleVecParam(CmMaxEnum,iomodel->cm_max,iomodel->num_control_type)); 58 61 parameters->AddObject(new DoubleVecParam(MaxIterEnum,iomodel->maxiter,iomodel->nsteps)); 59 62 60 63 xfree((void**)&iomodel->cm_responses); 61 64 xfree((void**)&iomodel->cm_jump); 65 xfree((void**)&iomodel->cm_min); 66 xfree((void**)&iomodel->cm_max); 62 67 xfree((void**)&iomodel->optscal); 63 68 xfree((void**)&iomodel->maxiter);
Note:
See TracChangeset
for help on using the changeset viewer.