Re: [petsc-users] How to manually set the matrix-free differencing parameter h?

2017-05-23 Thread Ping He
Hi Barry, Thanks for your reply. It is working. Regards, Ping On 05/23/2017 02:02 PM, Barry Smith wrote: That's not really the right function; you can use MatMFFDSetFunctionError(), MatMFFDSetType(), MatMFFDSetPeriod() to set the available parameters. Barry On May 23, 2017, at

Re: [petsc-users] How to manually set the matrix-free differencing parameter h?

2017-05-23 Thread Barry Smith
That's not really the right function; you can use MatMFFDSetFunctionError(), MatMFFDSetType(), MatMFFDSetPeriod() to set the available parameters. Barry > On May 23, 2017, at 12:09 PM, Ping He wrote: > > Hi, > > I am using PETSc-SNES matrix free approach, and I

[petsc-users] How to manually set the matrix-free differencing parameter h?

2017-05-23 Thread Ping He
Hi, I am using PETSc-SNES matrix free approach, and I would like to know how to manually set the differencing parameter h. I tried to use the SNESDefaultMatrixFreeSetParameters2 function but I got an error when compiling: ‘SNESDefaultMatrixFreeSetParameters2’ was not declared in this scope.