[petsc-users] PETSC_VERSION_LT

Mark F. Adams mark.adams at columbia.edu
Wed Feb 6 15:41:03 CST 2013


I'm running with v3.3.00 and have this in my code:

#ifdef PETSC_VERSION_LT(3,3,0)
    call MatCreateMPIAIJ( comm, PETSC_DECIDE, PETSC_DECIDE, nnodes, nnodes, &
         maxn1, PETSC_NULL_INTEGER, maxn1/2, PETSC_NULL_INTEGER, &
         AA, ierr )
#else
    call MatCreateAIJ( comm, PETSC_DECIDE, PETSC_DECIDE, nnodes, nnodes, &
         maxn1, PETSC_NULL_INTEGER, maxn1/2, PETSC_NULL_INTEGER, &
         AA, ierr )
#endif


and I get errors like:

/autofs/na1_home/adams/XGC1/XGC1_3/./module.F95:1189: undefined reference to `matcreatempiaij_'
/autofs/na1_home/adams/XGC1/XGC1_3/./module.F95:1215: undefined reference to `matcreatempiaij_'
/autofs/na1_home/adams/XGC1/XGC1_3/./module.F95:1235: undefined reference to `matcreatempiaij_'


Am I not using this correctly?


More information about the petsc-users mailing list