[petsc-users] Question about Vec/MatSetLocalToGlobalMapping

Pedro Torres torres.pedrozpk at gmail.com
Thu Feb 11 12:41:53 CST 2010


Thanks Matt.

Best Regards

Pedro

2010/2/11 Matthew Knepley <knepley at gmail.com>

> 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
>



-- 

Samuel Goldwyn<http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html>
- "I don't think anyone should write their autobiography until after
they're dead."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100211/7a42e5fa/attachment.htm>


More information about the petsc-users mailing list