CSR Sparse Matrix Query

Dr. Timothy Stitt timothy.stitt at ichec.ie
Mon Apr 23 10:29:41 CDT 2007


Great...thanks for that Satish.

Satish Balay wrote:
> On Mon, 23 Apr 2007, Dr. Timothy Stitt wrote:
>
>   
>> I am using Fortran. Do I have to perform some operation to switch
>> from column-major to row-major representation before calling the
>> MatCreateSeqAIJWithArrays routine? 
>>     
>
> MatCreateSeqAIJWithArrays expects a 1d array for the values [and
> rows,column indicies as well] - so this issue of row-major vs
> column-major does not exist.
>
>   
>> Also does this routine replace the call to the MatCreate() routine?
>> I am assuming I still need to do the assembling of the matrix
>> afterwards?
>>     
>
> You will get a fully created & assembled matrix after this call.
>
> Satish
>
>   


-- 
Dr. Timothy Stitt <timothy_dot_stitt_at_ichec.ie>
HPC Application Consultant - ICHEC (www.ichec.ie)

Dublin Institute for Advanced Studies
5 Merrion Square - Dublin 2 - Ireland

+353-1-6621333 (tel) / +353-1-6621477 (fax) / +353-874195427 (mobile)




More information about the petsc-users mailing list