Changeset 3490


Ignore:
Timestamp:
04/09/10 09:07:32 (15 years ago)
Author:
seroussi
Message:

find collapse only if elements_type in iomodel

File:
1 edited

Legend:

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

    r3489 r3490  
    8080
    8181        //elements of type 3 are macayeal type penta. we collapse the formulation on their base.
    82         if (*(iomodel->elements_type+2*i+0)==MacAyealFormulationEnum()){
    83                 this->properties.collapse=1;
    84         }
    85         else{
    86                 this->properties.collapse=0;
     82        if(iomodel->elements_type){
     83                if (*(iomodel->elements_type+2*i+0)==MacAyealFormulationEnum()){
     84                        this->properties.collapse=1;
     85                }
     86                else{
     87                        this->properties.collapse=0;
     88                }
    8789        }
    8890
Note: See TracChangeset for help on using the changeset viewer.