Changeset 24527


Ignore:
Timestamp:
01/22/20 13:32:22 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixing compilation depending on PETSc version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/solutionsequences/solutionsequence_schurcg.cpp

    r23925 r24527  
    8888         * and I the Schur preconditioner (stored here, because the space was allocated either way)
    8989         *         */
    90         #if _PETSC_MINOR_>10
     90        #if _PETSC_MINOR_>8
    9191        MatCreateSubMatrix(Kff,isv,isv,MAT_INITIAL_MATRIX,&A);
    9292        MatCreateSubMatrix(Kff,isv,isp,MAT_INITIAL_MATRIX,&B);
     
    9999       
    100100        /* Extract preconditioner matrix on the pressure space*/
    101         #if _PETSC_MINOR_>10
     101        #if _PETSC_MINOR_>8
    102102        MatCreateSubMatrix(Kff,isp,isp,MAT_INITIAL_MATRIX,&IP);
    103103        #else
     
    539539
    540540        /*Extract A, B, B^T */
    541         #if _PETSC_MINOR_>10
     541        #if _PETSC_MINOR_>8
    542542        MatCreateSubMatrix(Kff->pmatrix->matrix,isv,isv,MAT_INITIAL_MATRIX,&A);
    543543        MatCreateSubMatrix(Kff->pmatrix->matrix,isv,isp,MAT_INITIAL_MATRIX,&B);
Note: See TracChangeset for help on using the changeset viewer.