MatSetValuesBlocked
Saikrishna V. Marella
svm at cfdrc.com
Fri Feb 16 17:44:25 CST 2007
Hey guys,
How are the block matrices assembled when using
MatSetValuesBlocked(mat,m,idxm[],n,idxn[],v[],addv).
Suppose m=n=2 and block size(bs) = 2 The matrix I am trying to assemble is
1 2 | 3 4
5 6 | 7 8
- - - | - - -
9 10 | 11 12
13 14 | 15 16
The manual says, v[] should be row-oriented. For Block matrices what does
that mean?
Should the array v[] being passed in look like
a) v[] = [1,2,5,6,3,4,7,8,9,10,13,14,11,12,15,16]
OR
b) v[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
Thanks.
Sai Marella.
_____________________________________________________
Saikrishna Marella, (PhD), Project Engineer
CFD Research Corp. 215 Wynn Dr. Huntsville AL 35805
Tel: 256-726-4954,(4800), Fax(4806) , svm at cfdrc.com
Home Page: http://www.cfdrc.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Saikrishna(Sai) Marella (svm at cfdrc.com).vcf
Type: text/x-vcard
Size: 420 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20070216/528a5730/attachment.vcf>
More information about the petsc-users
mailing list