Changeset 11469


Ignore:
Timestamp:
02/18/12 07:19:51 (13 years ago)
Author:
Mathieu Morlighem
Message:

Fixed compilation for PETSc 3.2 (MATSOLVERMUMPS + PCFieldSplit)

File:
1 edited

Legend:

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

    r11466 r11469  
    127127        KSPGetPC(ksp,&pc);
    128128        if (solver_type==MUMPSPACKAGE_LU){
     129                #if _PETSC_MINOR_==1
    129130                PCFactorSetMatSolverPackage(pc,MAT_SOLVER_MUMPS);
     131                #else
     132                PCFactorSetMatSolverPackage(pc,MATSOLVERMUMPS);
     133                #endif
    130134        }
    131135        #endif
     
    140144                /*Set field splits: */
    141145                KSPGetPC(ksp,&pc);
     146                #if _PETSC_MINOR_==1
    142147                PCFieldSplitSetIS(pc,isv);
    143148                PCFieldSplitSetIS(pc,isp);
     149                #else
     150                PCFieldSplitSetIS(pc,PETSC_NULL,isv);
     151                PCFieldSplitSetIS(pc,PETSC_NULL,isp);
     152                #endif
    144153
    145154        }
Note: See TracChangeset for help on using the changeset viewer.