[petsc-users] Question regadring VecScatter

Tabrez Ali stali at geology.wisc.edu
Wed Jun 13 22:02:53 CDT 2012


I think ncells_from and ncells_to have to be the same size

On 06/13/2012 06:41 PM, Bisht, Gautam wrote:
> 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.



More information about the petsc-users mailing list