Changeset 19647


Ignore:
Timestamp:
10/15/15 15:59:49 (9 years ago)
Author:
Eric.Larour
Message:

CHG: finalize Petsc when calling the descructor.

File:
1 edited

Legend:

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

    r19554 r19647  
    7979        profiler->Tag(FinishInit);
    8080
     81
    8182        /*Free resources */
    8283        xDelete<char>(lockfilename);
     
    129130        /*Now delete: */
    130131        if(profiler)delete profiler;
     132       
     133        /*Finalize PETSC for this model: */
     134        #ifdef _HAVE_PETSC_
     135        _printf0_("closing PETSc\n");
     136        PetscFinalize();
     137        #endif
     138
    131139}
    132140/*}}}*/
     
    248256                                );
    249257        _printf0_("\n");
    250 
    251         /*Finalize PETSC for this model: */
    252         #ifdef _HAVE_PETSC_
    253         _printf0_("closing PETSc\n");
    254         PetscFinalize();
    255         #endif
    256 
    257258
    258259        /*Clean up*/
Note: See TracChangeset for help on using the changeset viewer.