Hi, I'm getting an error while creating a VecScatter for a MPI vector to another MPI vector.
'vec_from' has 3 elements (1 on proc-0 and 2 on proc-1) 'vec_to' has 3 elements (2 on proc-0 and 1 on proc-1) I want to scatter forward elements of 'vec_from' to 'vec_to' and am using IS to create the VecScatterCreate. Attached is the code. mpiexec -n 2 ./vecscatter_test produces [0]PETSC ERROR: --------------------- Error Message ------------------------------------ [0]PETSC ERROR: Nonconforming object sizes! [0]PETSC ERROR: Local scatter sizes don't match! [0]PETSC ERROR: ------------------------------------------------------------------------ Any ideas what's going wrong? Thanks, -Gautam. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: vecscatter_test.F90 URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120613/2c3ae17e/attachment.ksh>
