Changeset 18239


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

BUG: element_type_list is a int array, should be initialized with 0, not NULL

Location:
issm/trunk-jpl/src/c/classes/Elements
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Penta.cpp

    r18237 r18239  
    7474                for(i=0;i<nanalyses;i++) {
    7575                        if (this->element_type_list[i]) penta->element_type_list[i]=this->element_type_list[i];
    76                         else penta->element_type_list[i] = NULL;
     76                        else penta->element_type_list[i] = 0;
    7777                }
    7878        }
  • issm/trunk-jpl/src/c/classes/Elements/Tetra.cpp

    r18237 r18239  
    6060                for(i=0;i<nanalyses;i++){
    6161                        if (this->element_type_list[i]) tetra->element_type_list[i]=this->element_type_list[i];
    62                         else tetra->element_type_list[i] = NULL;
     62                        else tetra->element_type_list[i] = 0;
    6363                }
    6464        }
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r18237 r18239  
    4444                if(nummodels>0){
    4545                        this->element_type_list=xNew<int>(nummodels);
    46                         for(int i=0;i<nummodels;i++) this->element_type_list[i] = NULL;
     46                        for(int i=0;i<nummodels;i++) this->element_type_list[i] = 0;
    4747                }
    4848                else this->element_type_list = NULL;
     
    6767                for(i=0;i<nanalyses;i++){
    6868                        if (this->element_type_list[i]) tria->element_type_list[i]=this->element_type_list[i];
    69                         else tria->element_type_list[i] = NULL;
     69                        else tria->element_type_list[i] = 0;
    7070                }
    7171        }
Note: See TracChangeset for help on using the changeset viewer.