Changeset 24980


Ignore:
Timestamp:
06/07/20 23:55:19 (5 years ago)
Author:
Eric.Larour
Message:

CHG: case of hydro material was not covered when doing a copy or a reset.

File:
1 edited

Legend:

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

    r24976 r24980  
    117117
    118118        tria->hvertices = (Hook*)this->hvertices->copy();
    119         tria->hmaterial = (Hook*)this->hmaterial->copy();
     119        if(this->hmaterial)tria->hmaterial = (Hook*)this->hmaterial->copy();
    120120        tria->hneighbors = NULL;
    121121
     
    139139
    140140        tria->vertices = (Vertex**)this->hvertices->deliverp();
    141         tria->material = (Material*)this->hmaterial->delivers();
     141        if(this->hmaterial)tria->material = (Material*)this->hmaterial->delivers();
    142142
    143143        return tria;
     
    39433943        for(int i=0;i<this->numanalyses;i++) if(this->hnodes[i]) this->hnodes[i]->reset();
    39443944        this->hvertices->reset();
    3945         this->hmaterial->reset();
     3945        if(this->hmaterial)this->hmaterial->reset();
    39463946        if(this->hneighbors) this->hneighbors->reset();
    39473947
Note: See TracChangeset for help on using the changeset viewer.