[petsc-users] Error during code compile with MATGETOWNERSHIPRANGE

Barry Smith bsmith at petsc.dev
Wed Aug 21 11:03:49 CDT 2024


  You must declare as

  PetscInt ksta_p,kend_p

  Perhaps they are declared as arrays?


> On Aug 21, 2024, at 11:19 AM, TAY Wee Beng <zonexo at gmail.com> wrote:
> 
> Hi,
> 
> I am using the latest PETSc thru github. I compiled both the debug and rel ver of PETSc w/o problem.
> 
> I then use it with my CFD code and the debug ver works.
> 
> However, I have problems with the rel ver:
> 
> ftn -o global.o -c -O3 -g -ip -ipo   -fPIC  -save -w -I/home/project/11003851/lib/petsc_210824_intel_rel/include    global.F90
> ifort: remark #10448: Intel(R) Fortran Compiler Classic (ifort) is now deprecated and will be discontinued late 2024. Intel recommends that customers transition now to using the LLVM-based Intel(R) Fortran Compiler (ifx) for continued Windows* and Linux* support, new language support, new language features, and optimizations. Use '-diag-disable=10448' to disable this message.
> global.F90(444): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MATGETOWNERSHIPRANGE]
>         call MatGetOwnershipRange(A_mat,ksta_p,kend_p,ierr)
> -------------^
> global.F90(720): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MATGETOWNERSHIPRANGE]
> call MatGetOwnershipRange(A_mat_uv,ksta_m,kend_m,ierr)
> -----^
> global.F90(774): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MATGETOWNERSHIPRANGE]
> call MatGetOwnershipRange(A_semi_x,ksta_mx,kend_mx,ierr)
> -----^
> global.F90(776): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MATGETOWNERSHIPRANGE]
> call MatGetOwnershipRange(A_semi_y,ksta_my,kend_my,ierr)
> -----^
> global.F90(949): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MATGETOWNERSHIPRANGE]
> call MatGetOwnershipRange(A_semi_x,ksta_mx,kend_mx,ierr)
> -----^
> global.F90(957): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MATGETOWNERSHIPRANGE]
> call MatGetOwnershipRange(A_semi_y,ksta_my,kend_my,ierr)
> -----^
> compilation aborted for global.F90 (code 1)
> 
> May I know what's the problem?
> 
> --
> 
> Thank you very much.
> 
> Yours sincerely,
> 
> ================================================
> TAY Wee-Beng 郑伟明 (Zheng Weiming)
> ================================================
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240821/aa6cc842/attachment.html>


More information about the petsc-users mailing list