Changeset 20595


Ignore:
Timestamp:
05/06/16 15:48:31 (9 years ago)
Author:
Eric.Larour
Message:

CHG: CreateOutputDefinitions bug fix (big one!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateOutputDefinitions.cpp

    r20038 r20595  
    9090
    9191                                        /*Now, for this particular misfit object, make sure we plug into the elements: the observation, and the weights.*/
    92                                         for(i=0;i<elements->Size();i++){
    93                                                 Element* element=xDynamicCast<Element*>(elements->GetObjectByOffset(i));
     92                                        for(k=0;k<elements->Size();k++){
     93                                                Element* element=xDynamicCast<Element*>(elements->GetObjectByOffset(k));
    9494                                                element->InputCreate(misfit_observation_s[j], iomodel,misfit_observation_M_s[j],misfit_observation_N_s[j],1,misfit_observation_enum_s[j],7);
    9595                                                element->InputCreate(misfit_weights_s[j], iomodel,misfit_weights_M_s[j],misfit_weights_N_s[j],1,misfit_weights_enum_s[j],7);
Note: See TracChangeset for help on using the changeset viewer.