[petsc-dev] MatMFFDSetType

Adrian Croucher a.croucher at auckland.ac.nz
Sun Jun 26 20:49:45 CDT 2016



On 27/06/16 13:44, Barry Smith wrote:
> Yes, you are correct, there is no MatFDSetType() and in the 
> SetFromOptions we totally cheat 
> http://www.mcs.anl.gov/petsc/petsc-current/src/mat/matfd/fdmatrix.c.html#MatFDColoringSetFromOptions 
> and just stick the value directly into the data structure. For now you 
> can call
> PetscOptionsSetValue(NULL,"-mat_fd_type","ds") in your code (before you start using the MatFD stuff) and we'll add the routine to the master branch.

Thanks, that workaround does the trick for now.
> I didn't think anyone would care about the difference between ds and wp with MatFD.
It makes a noticeable difference for the problem I'm solving right now. 
That may be because the problem is not non-dimensionalized (as yet 
anyway) and so some of the solution elements are of different magnitudes 
than others. If I non-dimensionalize them it may possibly not matter any 
more about wp or ds.

- Adrian

-- 
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
University of Auckland, New Zealand
email: a.croucher at auckland.ac.nz
tel: +64 (0)9 923 84611

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20160627/45ad8c8c/attachment.html>


More information about the petsc-dev mailing list