leave my rows alone

Thomas Geenen geenen at gmail.com
Wed Aug 16 11:37:13 CDT 2006


On Wednesday 16 August 2006 18:21, Matthew Knepley wrote:
> On 8/16/06, Thomas Geenen <geenen at gmail.com> wrote:
> > dear petsc users,
> >
> > is there a way to prevent Petsc during the assembly phase from
> > redistributing matrix rows over cpu's ?? i like the way the rows are
> > assigned to the cpu's during the setvalues phase.
>
> Actually,  the layout of a matrix is fully determined after MatSetSizes(),
> or equivalently MatCreate***(). We do not redistribute at assembly.
>
> setValues() will take values for any row, and send it to the correct-
> process. The
send it to the correct process sounds a lot like redistributing but that's 
probably a matter of semantics 
> matrix layouts we support all have contiguous row on each proc. You can set
> the sizes on creation.
pity
>
>   Does this answer your question?
yep 
thanks
>
>   Thanks,
>
>      Matt
>
> > apparently petsc assigns the first nrows to cpu0 the second nrows to cpu1
> > etc. I could of course renumber my matrix but I would rather convince
> > petsc that it should keep the distribution of the matrix rows.
> >
> > tia
> > Thomas




More information about the petsc-users mailing list