<div dir="ltr">Hi all,<div><br></div><div>I want to use PETSc with 64-bit indices with a Fortran90 code. It seems some PETSc functions have no problem, but some of the others do not accept 32-bit error code integer (e.g., "ierr" declared as PetscErrorCode type). </div><div><br></div><div>For example, </div><div><br></div><div>call DMPlexGetChart(dm, pst, pend, ierr);CHKERRA(ierr)    works okay, </div><div><br></div><div>but<br></div><div><br></div><div>call DMPlexGetDepthStratum(dm, 0, vst, vend, ierr);CHKERRA(ierr)  gives an error regarding the datatype of ierr. The error basically leads: <br></div><div>Error: Type mismatch in argument ‘b’ at (1); passed INTEGER(4) to INTEGER(8)<br></div><div><br></div><div>I tried to declare ierr as integer(kind=8) type, but there are still some problems. If PETSc is configured with 32-bit indices, the Fortran code works without problem. </div><div><br></div><div>What surprising to me is that as mentioned above, DMPlexGetChart() works okay, but 

DMPlexGetDepthStratum() does not work with "ierr (PetscErrorCode type)" variable with 64-bit indices. </div><div><br></div><div>Can I get any comments on it? </div><div><br></div><div>Thanks,</div><div>Mike</div></div>