[petsc-users] DMDA questions
Jed Brown
jed at jedbrown.org
Tue Feb 25 15:12:01 CST 2014
Xiangdong <epscodes at gmail.com> writes:
> For the MatSetValuesStencil, should it always work in pair with
> DMCreateMatrix?
Yes, or MatSetStencil.
> However, in some example, e.g., src/ksp/ksp/examples/tutorials/ex25.c, the
> DMCreateMatrix is never called. Is it because KspSetComputeOperators is
> used and DMCreateMatrix is called implicitly somewhere?
No, it is just testing that certain functionality works even if the DM
is not set. If you have a DM, we recommend setting it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140225/ca85790a/attachment.pgp>
More information about the petsc-users
mailing list