[petsc-users] Distribution of columns on mutliple ranks

2015-04-14 Thread Florian Lindner
Hello, given I have this piece of python code: rank = MPI.COMM_WORLD.Get_rank() sizes = [ 4, 5] n = sizes[rank] A = PETSc.Mat() A.create() A.setSizes( ((n, PETSc.DETERMINE), (n, PETSc.DETERMINE)) ) # sets the local size, let petsc determine global size A.setFromOptions(); A.setUp()

Re: [petsc-users] Distribution of columns on mutliple ranks

2015-04-14 Thread Matthew Knepley
On Tue, Apr 14, 2015 at 4:11 AM, Florian Lindner mailingli...@xgm.de wrote: Hello, given I have this piece of python code: rank = MPI.COMM_WORLD.Get_rank() sizes = [ 4, 5] n = sizes[rank] A = PETSc.Mat() A.create() A.setSizes( ((n, PETSc.DETERMINE), (n, PETSc.DETERMINE)) ) # sets the