Changeset 4457


Ignore:
Timestamp:
07/08/10 08:46:38 (15 years ago)
Author:
seroussi
Message:

forgot to check if element is in the cpu in Stokes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/ModelProcessorx/DiagnosticStokes/UpdateElementsDiagnosticStokes.cpp

    r4441 r4457  
    1717        /*Intermediary*/
    1818        int i;
     19        int counter;
    1920        Element* element=NULL;
    2021
     
    4546
    4647        /*Update elements: */
     48        counter=0;
    4749        for (i=0;i<iomodel->numberofelements;i++){
    48 
    49                 element=(Element*)elements->GetObjectByOffset(i);
    50                 element->Update(i,iomodel,analysis_counter,analysis_type); //we need i to index into elements.
    51 
     50                if(iomodel->my_elements[i]){
     51                        element=(Element*)elements->GetObjectByOffset(counter);
     52                        element->Update(i,iomodel,analysis_counter,analysis_type); //we need i to index into elements.
     53                        counter++;
     54                }
    5255        }
    5356
Note: See TracChangeset for help on using the changeset viewer.