[petsc-users] scattering strategies

Wienand Drenth w.drenth at gmail.com
Mon Oct 17 15:44:33 CDT 2011


On Mon, Oct 17, 2011 at 10:22 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> On Mon, Oct 17, 2011 at 15:17, Wienand Drenth <w.drenth at gmail.com> wrote:
>
>>
>>
> Simple solution:
>
> Make a DMDA to represent your multi-dimensional layout, put your array
> values into the Vec you get from the DM, and call VecView(). It will do a
> parallel write and your vector will end up in the natural ordering. You can
> VecLoad() it later or read it with other software.
>

Hello Jed,
Thanks for the quick response. I haven't thought about this DMDA approach
and it sounds really nice. With natural ordering, I assume you mean what I
call Petsc ordering (in any case different from the ordering imposed by the
user)?

regards,
Wienand



-- 
Wienand Drenth PhD
Eindhoven, the Netherlands
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111017/8686dd1d/attachment.htm>


More information about the petsc-users mailing list