Changeset 22239


Ignore:
Timestamp:
11/06/17 16:28:20 (7 years ago)
Author:
schlegel
Message:

CHG: clean up some GEMB deletes

File:
1 edited

Legend:

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

    r22237 r22239  
    15921592    }
    15931593    else if(vector_type==3){ //element vector
    1594        
    1595         IssmDouble value;
    15961594       
    15971595        /*For right now we are static */
     
    28712869
    28722870        /*Free allocations:{{{*/
    2873         xDelete<IssmDouble>(dz);
    2874         xDelete<IssmDouble>(d);
    2875         xDelete<IssmDouble>(re);
    2876         xDelete<IssmDouble>(gdn);
    2877         xDelete<IssmDouble>(gsp);
    2878         xDelete<IssmDouble>(W);
    2879         xDelete<IssmDouble>(a);
    2880         xDelete<IssmDouble>(T);
    2881         xDelete<IssmDouble>(dzini);
    2882         xDelete<IssmDouble>(dini);
    2883         xDelete<IssmDouble>(reini);
    2884         xDelete<IssmDouble>(gdnini);
    2885         xDelete<IssmDouble>(gspini);
    2886         xDelete<IssmDouble>(Wini);
    2887         xDelete<IssmDouble>(aini);
    2888         xDelete<IssmDouble>(Tini);
     2871        if(dz) xDelete<IssmDouble>(dz);
     2872        if(d) xDelete<IssmDouble>(d);
     2873        if(re) xDelete<IssmDouble>(re);
     2874        if(gdn) xDelete<IssmDouble>(gdn);
     2875        if(gsp) xDelete<IssmDouble>(gsp);
     2876        if(W) xDelete<IssmDouble>(W);
     2877        if(a) xDelete<IssmDouble>(a);
     2878        if(T) xDelete<IssmDouble>(T);
     2879        if(dzini) xDelete<IssmDouble>(dzini);
     2880        if(dini) xDelete<IssmDouble>(dini);
     2881        if(reini) xDelete<IssmDouble>(reini);
     2882        if(gdnini) xDelete<IssmDouble>(gdnini);
     2883        if(gspini) xDelete<IssmDouble>(gspini);
     2884        if(Wini) xDelete<IssmDouble>(Wini);
     2885        if(aini) xDelete<IssmDouble>(aini);
     2886        if(Tini) xDelete<IssmDouble>(Tini);
    28892887
    28902888        delete gauss;
Note: See TracChangeset for help on using the changeset viewer.