[petsc-users] Create DM matrix

Sang pham van pvsang002 at gmail.com
Wed Feb 10 20:44:10 CST 2016


That is because my matrix has some rows which need more entries than usual.
Where can i find source code of DMCreateMatrix()?

Pham.
On Feb 11, 2016 8:35 AM, "Matthew Knepley" <knepley at gmail.com> wrote:

> On Wed, Feb 10, 2016 at 6:14 PM, Sang pham van <pvsang002 at gmail.com>
> wrote:
>
>> Hi,
>>
>> I am trying to create a DM matrix with DMCreateMatrix_DA_3d_MPIAIJ()
>> instead of using DMCreateMatrix().
>>
>
> Why, that should be called automatically by DMCreateMatrix()?
>
>   Matt
>
>
>> Which header file should I include to use that routine? also, what is the
>> source file containing the DMCreateMatrix() routine?
>>
>> Many thanks in advance.
>> Pham
>>
>
>
>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160211/23cf43ba/attachment.html>


More information about the petsc-users mailing list