[petsc-users] extract Mat data

Barry Smith bsmith at mcs.anl.gov
Thu Mar 31 13:20:34 CDT 2011


On Mar 31, 2011, at 1:15 PM, gouarin wrote:

> On 31/03/2011 20:05, Barry Smith wrote:
>> On Mar 31, 2011, at 12:38 PM, gouarin wrote:
>> 
>>> On 31/03/2011 19:06, Matthew Knepley wrote:
>>>> On Thu, Mar 31, 2011 at 10:10 AM, gouarin<loic.gouarin at math.u-psud.fr>  wrote:
>>>> u want.
>> 
> Thanks Matt and Barry. I looked at the interface for hypre to see what you have done and I saw this include file.
> 
> I'll try to do that in a simple way with MatGetOwnershipRanges for my first PC version.
> 
> There are a lot of functions in PETSc and it's sometime difficult to find the good one.

    The particular data structure you need is not something we provide natively so, sorry, it will require that you poke around in order to extract it to the form you want.

   Barry

> 
> Thanks again.
> 
> Loic
> 
> 
>>   Barry
>> 
>> 
>> 
>> 
>> 
>>> I can also use MatGetOwnershipRange() and MPI_Allgather to have this information.
>>> 
>>> Loic
>>> 
>>> 
>>> 
>>> 
>>>>    Matt
>>>> 
>>>> I suppose that I have no information about the structure of MPIAIJ.
>>>> 
>>>> Loic
>>>> 
>>>> 
>>>> 
>>>> 
>>>> -- 
>>>> 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
> 



More information about the petsc-users mailing list