[petsc-users] Remove Jacobian matrix values less than tolerance

Juris Vencels juris.vencels at gmail.com
Thu Aug 6 16:16:57 CDT 2015


Hi Users,


When I construct analytical Jacobian matrix it has many small values of 
order 1E-16.

How can I remove these values that are less than a given tolerance, 
let's say 1E-10?

I tried to use MatChop together with MatCopy and MatDuplicate, but none 
of these functions ignores zeros.


Thanks!


More information about the petsc-users mailing list