[petsc-users] Question about Vec/MatSetLocalToGlobalMapping

Matthew Knepley knepley at gmail.com
Thu Feb 11 12:36:11 CST 2010


We should add a 'get'. For now, include 'private/matimpl.h'

  Matt

On Thu, Feb 11, 2010 at 12:33 PM, Pedro Torres <torres.pedrozpk at gmail.com>wrote:

> Hi,
>
> How can I check if a mapping is already set in a Vec/Mat object??. I try
> the following,
>
> if(!A->mapping)MatSetLocalToGlobalMapping(A,map);
>
> but I get this error
> error: invalid use of incomplete type ‘struct _p_Mat’
> error: forward declaration of ‘struct _p_Mat’
>
> Thanks in advance
>
> Pedro Torres
>



-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100211/a0ce4139/attachment.htm>


More information about the petsc-users mailing list