Changeset 13765


Ignore:
Timestamp:
10/19/12 23:49:38 (12 years ago)
Author:
Eric.Larour
Message:

CHG: compile petsc initialize and finalize only if petsc is available

File:
1 edited

Legend:

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

    r13761 r13765  
    4141       
    4242        /*Now, initialize PETSC: */
     43        #ifdef _HAVE_PETSC_
    4344        PETSC_COMM_WORLD=this->comm;
    4445        ierr=PetscInitialize(&argc,&argv,(char*)0,"");  if(ierr) _error_("Could not initialize Petsc");
     46        #endif
    4547
    4648        /*Start profiler: */
     
    129131       
    130132        /*Finalize PETSC for this model: */
     133        #ifdef _HAVE_PETSC_
    131134        _pprintLine_("closing Petsc");
    132135        PetscFinalize();
     136        #endif
    133137
    134138}
Note: See TracChangeset for help on using the changeset viewer.