Changeset 8979 for issm/trunk


Ignore:
Timestamp:
07/14/11 08:34:06 (14 years ago)
Author:
Mathieu Morlighem
Message:

Bad index

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/Penta.cpp

    r8967 r8979  
    49474947
    49484948                        if (code==5){ //boolean
    4949                                 this->inputs->AddInput(new BoolInput(vector_enum,(bool)vector[i]));
     4949                                this->inputs->AddInput(new BoolInput(vector_enum,(bool)vector[index]));
    49504950                        }
    49514951                        else if (code==6){ //integer
    4952                                 this->inputs->AddInput(new IntInput(vector_enum,(int)vector[i]));
     4952                                this->inputs->AddInput(new IntInput(vector_enum,(int)vector[index]));
    49534953                        }
    49544954                        else if (code==7){ //double
    4955                                 this->inputs->AddInput(new DoubleInput(vector_enum,(double)vector[i]));
     4955                                this->inputs->AddInput(new DoubleInput(vector_enum,(double)vector[index]));
    49564956                        }
    49574957                        else _error_("%s%i"," could not recognize nature of vector from code ",code);
Note: See TracChangeset for help on using the changeset viewer.