Ignore:
Timestamp:
10/22/20 16:15:12 (4 years ago)
Author:
jdquinn
Message:

CHG: Uncommitted change for Boost + Valgrind config; memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/QmuStatisticsx/QmuStatisticsx.cpp

    r25688 r25711  
    669669        _printf0_("Done aggregating time mean histogram:\n");
    670670        IssmComm::SetComm(ISSM_MPI_COMM_WORLD);
     671
     672        return 1;
    671673}
    672674/*}}}*/
     
    10041006        IssmComm::SetComm(ISSM_MPI_COMM_WORLD);
    10051007
     1008        return 1;
    10061009} /*}}}*/
    10071010int ComputeSampleSeries(Parameters* parameters,Results* results,int color, ISSM_MPI_Comm statcomm){ /*{{{*/
     
    11641167        IssmComm::SetComm(ISSM_MPI_COMM_WORLD);
    11651168
     1169        return 1;
    11661170} /*}}}*/
    11671171int OutputStatistics(Parameters* parameters,Results* results,int color,ISSM_MPI_Comm statcomm){ /*{{{*/
     
    11971201
    11981202        OutputResultsx(femmodel);
     1203
     1204        return 1;
    11991205} /*}}}*/
    12001206bool DakotaDirStructure(int argc,char** argv){ /*{{{*/
     
    12311237        if(!statistics){
    12321238                delete iomodel;
    1233                 fclose(fid);
     1239                xDelete<char>(input_file);
     1240                fclose(fid);
    12341241                return false; //important return value!
    12351242        }
     
    12471254                }
    12481255        }
     1256
     1257        /*Delete resources:*/
     1258        delete iomodel;
     1259        xDelete<char>(input_file);
    12491260
    12501261        //close model file:
     
    13071318        if(!statistics){
    13081319                delete iomodel;
     1320                xDelete<char>(input_file);
    13091321                fclose(fid);
    13101322                return 0;
    1311         }
    1312 
    1313         //create parameters datasets with al the qmu statistics settings we need:
    1314         if(statistics){
     1323        }else{
     1324                //create parameters datasets with al the qmu statistics settings we need:
    13151325
    13161326                /*Initialize parameters and results:*/
     
    13891399                        else _error_(" error creating qmu statistics methods parameters: unsupported method " << name);
    13901400                }
     1401
     1402                /*Delete resources:*/
     1403                xDelete<char>(input_file);
     1404                delete iomodel;
    13911405        }
     1406
    13921407        //close model file:
    13931408        fclose(fid);
     
    13991414        ISSM_MPI_Barrier(ISSM_MPI_COMM_WORLD); _printf0_("Output file.\n");
    14001415
    1401         /*Delete ressources:*/
     1416        /*Delete resources:*/
    14021417        delete parameters;
    14031418        delete results;
    14041419
    1405 
    1406        
     1420        return 1;
    14071421} /*}}}*/
Note: See TracChangeset for help on using the changeset viewer.