On Mon, Nov 16, 2009 at 2:35 PM, Barry Smith <bsmith at mcs.anl.gov> wrote: > > ? With y = A x the row partition of A MUST match the row partition of y and > the column partition of A MUST match the row partition of x. > > ? There is no avoiding this, >
But it can be workaround-ed using a VecScatter, right? > > On Nov 16, 2009, at 10:08 AM, SUN Chun wrote: > >> Hi, >> >> I was trying to do MatMult with a non-square matrix and a vector. They >> have different local dimensions. >> >> For this particular case, my Mat is 12x48, my Vec is 48x1.When I run in >> parallel with 2 cores, I have Mat partitioned by row in 12+0, and I have Vec >> partitioned by row in 18+30. When I perform MatMult, I get: >> >> [0]PETSC ERROR: --------------------- Error Message >> ------------------------------------ >> [0]PETSC ERROR: Nonconforming object sizes! >> [0]PETSC ERROR: Incompatible partition of A (24) and xx (18)! >> [0]PETSC ERROR: >> ------------------------------------------------------------------------ >> >> Is it required to partition Vec and Mat such that my Vec's row partition >> agrees my Mat's column partition? If so, is there any way to get around >> this? >> >> Thanks, >> Chun > > -- Lisandro Dalc?n --------------- Centro Internacional de M?todos Computacionales en Ingenier?a (CIMEC) Instituto de Desarrollo Tecnol?gico para la Industria Qu?mica (INTEC) Consejo Nacional de Investigaciones Cient?ficas y T?cnicas (CONICET) PTLC - G?emes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594
