[petsc-users] PetscOptionsGetBool error

Zhang, Junchao jczhang at mcs.anl.gov
Wed Jan 8 17:16:10 CST 2020


A deprecated option won't cause segfault. From https://www.mcs.anl.gov/petsc/petsc-current/src/dm/label/examples/tutorials/ex1f90.F90.html, it seems you missed the first PETSC_NULL_OPTIONS.

--Junchao Zhang


On Wed, Jan 8, 2020 at 4:02 PM Anthony Paul Haas <aph at email.arizona.edu<mailto:aph at email.arizona.edu>> wrote:
Hello,

I am using Petsc 3.7.6.0. with Fortran code and I am getting a segmentation violation for the following line:

call PetscOptionsGetBool(PETSC_NULL_CHARACTER,"-use_mumps_lu",flg_mumps_lu,flg,self%ierr_ps)

in which:
flg_mumps_lu and flg are defined as PetscBool and
flg_mumps_lu = PETSC_TRUE

Is the option -use_mumps_lu deprecated?

Thanks,

Anthony

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


More information about the petsc-users mailing list