Xiangdong <[email protected]> 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.

Attachment: pgpxsKQttmvrt.pgp
Description: PGP signature

Reply via email to