Changeset 25558


Ignore:
Timestamp:
09/11/20 08:03:08 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixing Basile's commit

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  
    281281        codi_global.output_indices.clear();
    282282        #endif
     283        int i=-1;
    283284        for(Object* & object:dependent_objects->objects){
    284                 DependentObject* dep=(DependentObject*)object;
     285                i++;
     286                DependentObject* dep=xDynamicCast<DependentObject*>(object);
    285287                if(solution_type==TransientSolutionEnum) output_value = dep->GetValue();
    286288                if(solution_type!=TransientSolutionEnum) dep->Responsex(&output_value,femmodel);
     
    474476
    475477        /*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;
    487488
    488489        /*Recover some parameters*/
     
    631632                femmodel->results->AddObject(new GenericExternalResult<IssmPDouble*>(femmodel->results->Size()+1,JEnum,mystruct.Jlist,(*mystruct.i),mystruct.N,0,0));
    632633
    633         femmodel->OutputControlsx(&femmodel->results);
     634                femmodel->OutputControlsx(&femmodel->results);
    634635        }
    635636
  • issm/trunk-jpl/src/c/cores/controlvalidation_core.cpp

    r25554 r25558  
    217217        dependents=xNew<IssmPDouble>(num_dependents);
    218218        codi_global.output_indices.clear();
     219        int i=-1;
    219220        for(Object* & object:dependent_objects->objects){
    220                 DependentObject* dep=(DependentObject*)object
     221                DependentObject* dep=xDynamicCast<DependentObject*>(object);
     222                i++;
    221223                if(solution_type==TransientSolutionEnum){
    222224                        output_value = dep->GetValue();
     
    293295                j=0.;
    294296                for(Object* & object:dependent_objects->objects){
    295                         DependentObject* dep=(DependentObject*)object
     297                        DependentObject* dep=xDynamicCast<DependentObject*>(object);
    296298                        if(solution_type==TransientSolutionEnum){
    297299                                output_value = dep->GetValue();
Note: See TracChangeset for help on using the changeset viewer.