[petsc-users] Fwd: how to set the matrix with the new cell ordering with metis

Matthew Knepley knepley at gmail.com
Sun Nov 24 17:29:49 CST 2019


On Sun, Nov 24, 2019 at 5:23 PM Peng Ding <ztdepyahoo at gmail.com> wrote:

>
> Dear sir:
>      I generate the 3D mesh with Tetgen for FVM computation.  I reordered
> the cells and partitioned them with metis.  Then i got an array which
> records the distribution of each cells.  For example, on CPU -0., I have:
>       1, 3, 6 , 7 ....11, 22......
>     But all these cells have non-continuos index, how to set the matrix in
> petsc.
>

You will have to renumber them.

  Thanks,

    Matt


> Regards
>
>
> ztdepyahoo
> ztdepyahoo at gmail.com
>
> <https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=ztdepyahoo&uid=ztdepyahoo%40gmail.com&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&items=%5B%22ztdepyahoo%40gmail.com%22%5D>
> 签名由 网易邮箱大师 <https://mail.163.com/dashi/dlpro.html?from=mail81> 定制
>


-- 
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

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191124/04681bb1/attachment.html>


More information about the petsc-users mailing list