[petsc-users] Problem using MatSetOption

TAY wee-beng zonexo at gmail.com
Thu Feb 24 04:01:57 CST 2011


Hi,

I'm trying to use the MatSetOption in Fortran:

call MatAssemblyBegin(A_mat_uv,MAT_FINAL_ASSEMBLY,ierr)
call MatAssemblyEnd(A_mat_uv,MAT_FINAL_ASSEMBLY,ierr)

call MatSetOption(A_mat_uv,MAT_NO_NEW_NONZERO_LOCATIONS,PETSC_TRUE,ierr)

However I got the error:

Error: This name does not have a type, and must have an explicit type.   
[MAT_NO_NEW_NONZERO_LOCATIONS]
call MatSetOption(A_mat_uv,MAT_NO_NEW_NONZERO_LOCATIONS,PETSC_TRUE,ierr)

I tried removing the PETSC_TRUE argument but it also can't work.

Thanks for the help.

-- 
Yours sincerely,

TAY wee-beng



More information about the petsc-users mailing list