Changeset 3598


Ignore:
Timestamp:
04/21/10 17:00:30 (15 years ago)
Author:
Mathieu Morlighem
Message:

fixed some leaks

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

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/Balancedthickness2/CreateElementsNodesAndMaterialsBalancedthickness2.cpp

    r3588 r3598  
    135135        xfree((void**)&iomodel->gridonicesheet);
    136136        xfree((void**)&iomodel->gridoniceshelf);
     137        xfree((void**)&iomodel->elements);
    137138
    138139        /*All our datasets are already order by ids. Set presort flag so that later on, when sorting is requested on these
  • issm/trunk/src/c/io/ParameterInputsInit.cpp

    r3570 r3598  
    9292void ParameterInputs::Init( void* vinput_handle){
    9393}
    94 #endif //#ifdef _SERIAL-
     94#endif //#ifdef _SERIAL_
  • issm/trunk/src/c/parallel/balancedthickness.cpp

    r3595 r3598  
    2525        Model* model=NULL;
    2626
    27         Vec     u_g=NULL;
    2827        double* u_g_serial=NULL;
    2928        double* melting_g=NULL;
     
    6766        /*Initialize model structure: */
    6867        MPI_Barrier(MPI_COMM_WORLD); start_init=MPI_Wtime();
    69         model=new Model();
    7068
    7169        /*Open handle to data on disk: */
     
    138136
    139137        /*Free ressources:*/
     138        xfree((void**)&u_g_serial);
     139        xfree((void**)&melting_g);
     140        xfree((void**)&accumulation_g);
    140141        delete processedresults;
    141142        delete results;
  • issm/trunk/src/c/parallel/balancedthickness2.cpp

    r3588 r3598  
    6969        /*Initialize model structure: */
    7070        MPI_Barrier(MPI_COMM_WORLD); start_init=MPI_Wtime();
    71         model=new Model();
    7271
    7372        /*Open handle to data on disk: */
  • issm/trunk/src/c/parallel/balancedvelocities.cpp

    r3567 r3598  
    6464        /*Initialize model structure: */
    6565        MPI_Barrier(MPI_COMM_WORLD); start_init=MPI_Wtime();
    66         model=new Model();
    6766
    6867        /*Open handle to data on disk: */
     
    135134
    136135        /*Free ressources:*/
     136        xfree((void**)&u_g_serial);
     137        xfree((void**)&melting_g);
     138        xfree((void**)&accumulation_g);
    137139        delete processedresults;
    138140        delete results;
  • issm/trunk/src/c/parallel/diagnostic_core.cpp

    r3592 r3598  
    8181        fem_ds->FindParam(&numberofdofspernode_ds,"numberofdofspernode");
    8282
    83         //for qmu analysis, be sure the velocity input we are starting from  is the one in the parameters, otherwise,
    84         //we will create sensitivities just because we are starting from different velocities each time (and if tolerance is
    85         //not set tight enough): */
     83        //for qmu analysis, be sure the velocity input we are starting from  is the one in the parameters: */
    8684        if(qmu_analysis){
    8785                model->FindParam(&u_g_initial,NULL,NULL,"u_g",DiagnosticAnalysisEnum,HorizAnalysisEnum);
Note: See TracChangeset for help on using the changeset viewer.