source: issm/oecreview/Archive/21724-22754/ISSM-21875-21876.diff@ 22755

Last change on this file since 22755 was 22755, checked in by Mathieu Morlighem, 7 years ago

CHG: added 21724-22754

File size: 3.4 KB
  • ../trunk-jpl/src/c/classes/Elements/Tria.cpp

     
    26792679/*}}}*/
    26802680void       Tria::ResetHooks(){/*{{{*/
    26812681
     2682        if(this->nodes) xDelete<Node*>(this->nodes);
    26822683        this->nodes=NULL;
    26832684        this->vertices=NULL;
    26842685        this->material=NULL;
  • ../trunk-jpl/src/c/classes/Elements/Penta.cpp

     
    171171        this->inputs->AddInput(new PentaInput(input_enum,values,interpolation_enum));
    172172}
    173173/*}}}*/
    174 void     Penta::BasalNodeIndices(int* pnumindices,int** pindices,int finiteelement){/*{{{*/
     174void       Penta::BasalNodeIndices(int* pnumindices,int** pindices,int finiteelement){/*{{{*/
    175175
    176176        PentaRef::BasalNodeIndices(pnumindices,pindices,finiteelement);
    177177
     
    22122212/*}}}*/
    22132213void       Penta::ResetHooks(){/*{{{*/
    22142214
     2215        if(this->nodes) xDelete<Node*>(this->nodes);
    22152216        this->nodes=NULL;
    22162217        this->vertices=NULL;
    22172218        this->material=NULL;
  • ../trunk-jpl/src/c/classes/Elements/Tetra.cpp

     
    807807/*}}}*/
    808808void     Tetra::ResetHooks(){/*{{{*/
    809809
     810        if(this->nodes) xDelete<Node*>(this->nodes);
    810811        this->nodes=NULL;
    811812        this->vertices=NULL;
    812813        this->material=NULL;
  • ../trunk-jpl/src/c/classes/Dakota/IssmParallelDirectApplicInterface.cpp

     
    4848
    4949                                FemModel* femmodel;
    5050                               
    51                                 char     **responses_descriptors    = NULL;      //these are our! there are only numresponsedescriptors of them, not d_numresponses!!!
     51                                char     **responses_descriptors    = NULL;      //these are ours! there are only numresponsedescriptors of them, not d_numresponses!!!
     52                                char      *response_descriptor      = NULL;
    5253                                int        numresponsedescriptors;
    5354                                int        solution_type;
    5455                                bool       control_analysis         = false;
     
    127128                                        xDelete<char>(variable_descriptor);
    128129                                }
    129130                                xDelete<char*>(variable_descriptors);
     131                                for(i=0;i<numFns;i++){
     132                                        response_descriptor=responses_descriptors[i];
     133                                        xDelete<char>(response_descriptor);
     134                                }
     135                                if(responses_descriptors) xDelete<char*>(responses_descriptors);
    130136                                xDelete<IssmDouble>(responses);
    131137                                delete femmodel;
    132138
  • ../trunk-jpl/src/c/main/issm_dakota.cpp

     
    8383        /* Execute the environment:*/
    8484        env.execute();
    8585
     86        xDelete<char>(dakota_input_file);
     87        xDelete<char>(dakota_output_file);
     88        xDelete<char>(dakota_error_file);
     89
    8690        /*Return unix success: */
    8791        return 0;
    8892        #else
     
    8993        Cout <<  "ISSM Dakota  executable was compiled without support of Dakota! Will just return now!" << "\n";
    9094        return 1;
    9195        #endif
     96
    9297}
Note: See TracBrowser for help on using the repository browser.