[petsc-users] Question regadring VecScatter

Bisht, Gautam bishtg at ornl.gov
Wed Jun 13 18:41:46 CDT 2012


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>


More information about the petsc-users mailing list