[petsc-users] Meaning of MatStencil
Raeth, Peter
PRaeth at hpti.com
Mon Dec 27 09:47:25 CST 2010
AH ! Thanks very much Aron.
Best,
Peter.
________________________________
From: petsc-users-bounces at mcs.anl.gov [petsc-users-bounces at mcs.anl.gov] on behalf of Aron Ahmadia [aron.ahmadia at kaust.edu.sa]
Sent: Monday, December 27, 2010 10:44 AM
To: PETSc users list
Subject: Re: [petsc-users] Meaning of MatStencil
MatStencil only makes sense if you are using a distributed grid (DA), where it corresponds to physical field locations. You probably just want MatSetValuesBlocked (http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Mat/MatSetValuesBlocked.html)
Warm Regards,
Aron
On Mon, Dec 27, 2010 at 10:09 AM, Raeth, Peter <PRaeth at hpti.com<mailto:PRaeth at hpti.com>> wrote:
Am a new PETSc user trying to make use of the matrix level to create and operate on matrices whose memory exceeds that available on any one node. To populate a distributed dense matrix with results of other matrix calculations we are trying to use MatSetValuesBlockedStencil. Two of the inputs to that function require structures of type MatStencil. After searching the archives, tutorials, examples, and Google, I can not find anything that explains what the values of MatStencil are meant to do relative to where in the target matrix to place the block of values. Would someone please point me in the right direction?
Thanks,
Peter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20101227/c5e95539/attachment.htm>
More information about the petsc-users
mailing list