[petsc-users] Question on local vec to global vec for dof > 1

Jed Brown jed at jedbrown.org
Thu May 22 19:51:12 CDT 2014


Danyang Su <danyang.su at gmail.com> writes:

> On 22/05/2014 5:34 PM, Barry Smith wrote:
>>     DMDA does not work that way. Local and global vectors associated with DA’s are always “interlaced”.
> Then, is there any routine convert matrix to be "interlaced"?

I don't know what you mean.  DMCreateMatrix() will give you a Mat
preallocated for interlaced and that's how you should assemble it (e.g.,
with MatSetValuesBlockedStencil()).  There are several examples that use
this interface.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140522/96eee065/attachment.pgp>


More information about the petsc-users mailing list