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 
<[email protected]<mailto:[email protected]>> 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

Reply via email to