Changeset 13230
- Timestamp:
- 09/04/12 09:53:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/solutions/controltao_core.cpp
r13056 r13230 27 27 28 28 /*TAO*/ 29 int ierr;30 int num_controls,solution_type;31 int nsteps,maxiter;32 AppCtx user;33 TaoSolver tao = 0;34 IssmDouble *dummy= NULL;35 int *control_list= NULL;36 Vector *X= NULL;37 Vector *XL= NULL;38 Vector *XU= NULL;29 int ierr; 30 int num_controls,solution_type; 31 int nsteps,maxiter; 32 AppCtx user; 33 TaoSolver tao = 0; 34 IssmDouble *dummy = NULL; 35 int *control_list = NULL; 36 Vector<IssmDouble> *X = NULL; 37 Vector<IssmDouble> *XL = NULL; 38 Vector<IssmDouble> *XU = NULL; 39 39 40 40 /*Initialize TAO*/ … … 106 106 107 107 /*Retreive arguments*/ 108 int solution_type,num_cost_functions;109 AppCtx *user= (AppCtx *)userCtx;110 FemModel *femmodel= user->femmodel;111 int *cost_functions= NULL;112 IssmDouble *cost_functionsd= NULL;113 Vector *gradient= NULL;114 Vector *X= NULL;108 int solution_type,num_cost_functions; 109 AppCtx *user = (AppCtx *)userCtx; 110 FemModel *femmodel = user->femmodel; 111 int *cost_functions = NULL; 112 IssmDouble *cost_functionsd = NULL; 113 Vector<IssmDouble> *gradient = NULL; 114 Vector<IssmDouble> *X = NULL; 115 115 116 116 /*Convert input to Vec*/
Note:
See TracChangeset
for help on using the changeset viewer.