Changeset 25558
- Timestamp:
- 09/11/20 08:03:08 (5 years ago)
- Location:
- issm/trunk-jpl/src/c/cores
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/cores/controladm1qn3_core.cpp
r25555 r25558 281 281 codi_global.output_indices.clear(); 282 282 #endif 283 int i=-1; 283 284 for(Object* & object:dependent_objects->objects){ 284 DependentObject* dep=(DependentObject*)object; 285 i++; 286 DependentObject* dep=xDynamicCast<DependentObject*>(object); 285 287 if(solution_type==TransientSolutionEnum) output_value = dep->GetValue(); 286 288 if(solution_type!=TransientSolutionEnum) dep->Responsex(&output_value,femmodel); … … 474 476 475 477 /*Intermediaries*/ 476 long omode; 477 double f; 478 double dxmin,gttol; 479 int maxsteps,maxiter; 480 int intn,num_controls,num_cost_functions,solution_type; 481 double* scaling_factors = NULL; 482 double *X = NULL; 483 double *G = NULL; 484 int* N = NULL; 485 int* M = NULL; 486 int* control_enum; 478 long omode; 479 double f,dxmin,gttol; 480 int maxsteps,maxiter; 481 int intn ,num_controls,num_cost_functions,solution_type; 482 double *scaling_factors = NULL; 483 double *X = NULL; 484 double *G = NULL; 485 int *N = NULL; 486 int *M = NULL; 487 int *control_enum; 487 488 488 489 /*Recover some parameters*/ … … 631 632 femmodel->results->AddObject(new GenericExternalResult<IssmPDouble*>(femmodel->results->Size()+1,JEnum,mystruct.Jlist,(*mystruct.i),mystruct.N,0,0)); 632 633 633 femmodel->OutputControlsx(&femmodel->results);634 femmodel->OutputControlsx(&femmodel->results); 634 635 } 635 636 -
issm/trunk-jpl/src/c/cores/controlvalidation_core.cpp
r25554 r25558 217 217 dependents=xNew<IssmPDouble>(num_dependents); 218 218 codi_global.output_indices.clear(); 219 int i=-1; 219 220 for(Object* & object:dependent_objects->objects){ 220 DependentObject* dep=(DependentObject*)object 221 DependentObject* dep=xDynamicCast<DependentObject*>(object); 222 i++; 221 223 if(solution_type==TransientSolutionEnum){ 222 224 output_value = dep->GetValue(); … … 293 295 j=0.; 294 296 for(Object* & object:dependent_objects->objects){ 295 DependentObject* dep= (DependentObject*)object297 DependentObject* dep=xDynamicCast<DependentObject*>(object); 296 298 if(solution_type==TransientSolutionEnum){ 297 299 output_value = dep->GetValue();
Note:
See TracChangeset
for help on using the changeset viewer.