Changeset 8655


Ignore:
Timestamp:
06/17/11 13:02:51 (14 years ago)
Author:
Mathieu Morlighem
Message:

Fixed leak in thermal model

Location:
issm/trunk/src/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Container/Results.cpp

    r8224 r8655  
    165165
    166166        for(i=0;i<this->Size();i++){
    167 
    168167                ExternalResult* result=(ExternalResult*)this->GetObjectByOffset(i);
    169168
    170169                /*write result to disk: */
    171170                result->WriteData(fid,io_gather);
    172 
    173171        }
    174172
  • issm/trunk/src/c/objects/Elements/Penta.cpp

    r8654 r8655  
    37003700        GaussPenta* gauss=NULL;
    37013701
     3702        /* Ice/ocean heat exchange flux on ice shelf base */
     3703        if (!IsOnBed() || !IsOnShelf()) return NULL;
     3704
    37023705        /*Initialize Element vector*/
    37033706        ElementVector* pe=new ElementVector(nodes,NUMVERTICES,this->parameters);
    3704 
    3705         /* Ice/ocean heat exchange flux on ice shelf base */
    3706         if (!IsOnBed() || !IsOnShelf()) return NULL;
    37073707
    37083708        /*Retrieve all inputs and parameters*/
Note: See TracChangeset for help on using the changeset viewer.