[petsc-users] Doubt in MPIPreallocation
Matthew Knepley
knepley at gmail.com
Fri Feb 19 01:55:18 CST 2016
On Fri, Feb 19, 2016 at 1:50 AM, John Albequerque <johncfdcfd at gmail.com>
wrote:
> Could someone help me setting up this matrix i.e from preallocation to Set
> Values for an MPIAIJ matrix which has its entries.
>
>
>
>
>
> *1 1 1 1 0 0 0 00 1 1 1 1 0 0 00 0 1 1 1 1 0 00 0
> 0 1 1 1 1 00 0 0 0 1 1 1 1*
>
> I am trying to do it from 3 days now but not able to figure it out. Could
> someone please help me do this.
>
It will be enough to say that each row has 3 off-diagonal values, so you
can use the simplified preallocation rather
than giving a value for each row individually.
Matt
> Thanks.
>
> ----
> John Albequerque.
>
>
>
--
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/20160219/98591f1c/attachment.html>
More information about the petsc-users
mailing list